xingheng

Q: All browsers in my mbp can't open http website but https website

I'm not sure what I did before it happened, now I could open any http sites with error

 

 

in Chrome (49.0.2623.87 (64-bit))

"

This site can’t be reached

cn.bing.com refused to connect.

ERR_CONNECTION_REFUSED

"

 

 

in Safari ( 9.0.3 (11601.4.4))

"

Safari Can't Connect to the Server

...

"

 

 

in Firefox

"

Unable to connect

...

"

 

 

BUT, I can access a https site such as https://www.google.com.hk/?gws_rd=ssl and https://github.com/ in all the internet browsers!

 

 

Besides, I also could ping to the http website in Terminal application, all the other applications could connect to the Internet.

 

 

As I tried, I confirmed the DNS state is good in my home and work environment, closed all the proxy applications and plugins.

 

 

Now I think this may be caused by some certificate issues from Keychain Access, I tried to match the items between my mac mini and this macbook pro, no luck there, either.

 

 

So, this is really a weird problem, please help!

Before I tried to reinstall my mac, I really want to know what the real cause is. Thanks in advance!

 

 

OSX: 10.11.3 (15D21)

MacBook Pro (Retina, 13-inch, Late 2013)

Posted on Apr 5, 2016 9:04 AM

Close

Q: All browsers in my mbp can't open http website but https website

  • All replies
  • Helpful answers

  • by Carolyn Samit,

    Carolyn Samit Carolyn Samit Apr 5, 2016 9:11 AM in response to xingheng
    Level 10 (123,462 points)
    Apple Music
    Apr 5, 2016 9:11 AM in response to xingheng

    If your Mac is running 10.11.3, updating your OS X software to 10.11.4 may help.

     

    Click your Apple  top left in your screen. From the drop down menu click App Store. When the App Store opens select Updates from the menu.

     

    Your Mac may restart several times during the update process. When it's done try Safari.

  • by xingheng,

    xingheng xingheng Apr 5, 2016 9:19 PM in response to Carolyn Samit
    Level 1 (5 points)
    Mac OS X
    Apr 5, 2016 9:19 PM in response to Carolyn Samit

    Thanks Carolyn, I downloaded the combo update from apple website last night and installed the update just now. Now I could access the http and https sites when I open the proxy software (lantern.app), if I quit the proxy app, the problem still exists. I couldn't open any http sites but work for https sites, other applications can connect to the Internet successfully.

     

    I cleared the cookie and history data for Chrome and Safari, it doesn't work, either.

  • by Gin.,

    Gin. Gin. Apr 7, 2016 5:58 AM in response to xingheng
    Level 1 (4 points)
    Mac OS X
    Apr 7, 2016 5:58 AM in response to xingheng

    I have the exact same problem, and upgraded my mac but nothing happened. I don't have that proxy software though

    please I want a solution ASAP

  • by xingheng,

    xingheng xingheng Apr 10, 2016 7:33 PM in response to Eric Root
    Level 1 (5 points)
    Mac OS X
    Apr 10, 2016 7:33 PM in response to Eric Root

    Thanks for your links, Eric. I've verified them without luck. It exists.

  • by xingheng,

    xingheng xingheng Apr 10, 2016 7:35 PM in response to Gin.
    Level 1 (5 points)
    Mac OS X
    Apr 10, 2016 7:35 PM in response to Gin.

    Gin, have you resolved this? Please help, thanks!

  • by Gin.,

    Gin. Gin. Apr 11, 2016 1:12 AM in response to xingheng
    Level 1 (4 points)
    Mac OS X
    Apr 11, 2016 1:12 AM in response to xingheng

    well I didn't particularly solve it, and I use firefox so those links didn't work that well

    so what I did was :

     

    1. upgraded my mac from el capitan 10.11.3 to 10.11.4

    2. used a VPN >>http://www.vpngate.net/en/ and it worked!

     

    since the VPN is kinda always on, I have no problem accessing HTTP or HTTPS websites alike

     

    I like the VPN idea too

     

    of course I'm still interested in how and why I can't access http without a VPN. but at least it now works

     

    and BTW xingheng,  i took this idea from your reply so thanks

  • by chroot,Solvedanswer

    chroot chroot Apr 11, 2016 1:23 AM in response to xingheng
    Level 4 (1,099 points)
    Apr 11, 2016 1:23 AM in response to xingheng

    HTTP uses TCP port 80 and HTTPS uses TCP port 443.

     

     

    Test the issue in safe mode: Try safe mode if your Mac doesn't finish starting up - Apple Support

     

    If the issue is not present in safe mode, boot to normal mode.

     

    If the issue is resolved, it was isolated to caches or errors on the disk that safe mode repaired/cleaned.

     

    If the issue comes back it's related to third party software.  Check login items and the following folders:

     

    /Library/StartupItems

    /Library/LaunchAgents

    /Library/LaunchDaemons

    /Library/Extensions

    ~/Library/LaunchAgents

    ~/Library/LaunchDaemons (may not exist)

     

     

    Further isolation steps you can do to determine if the issue is related to the network or the computer is test in recovery mode.  Select Get Help Online from the OS X Utilities menu to open Safari.  Granted, for this situation it would most likely not be needed.

  • by Gin.,

    Gin. Gin. Apr 11, 2016 4:32 AM in response to chroot
    Level 1 (4 points)
    Mac OS X
    Apr 11, 2016 4:32 AM in response to chroot

    so I've tried safe mood and the problem didn't exist. what I understand is that I need to check those files

    but check for what exactly?

  • by chroot,Helpful

    chroot chroot Apr 11, 2016 9:52 AM in response to Gin.
    Level 4 (1,099 points)
    Apr 11, 2016 9:52 AM in response to Gin.

    Gin. wrote:

     

    so I've tried safe mood and the problem didn't exist. what I understand is that I need to check those files

    but check for what exactly?

     

    Did the issue occur after rebooting into normal mode?  If the answer is no then no further troubleshooting is needed.

     

    What you see in these folders are called plists or property lists.  These specific plists are to launch processes at either system start or user login.  The exception would be the /Library/Extensions folder which is for kernel extensions, save this folder for last.  Start at the first folder and move all items to the desktop then restart.  If the issue is not present, it's related to one of these files, add them back one by one then restart until the issue occurs--you've then narrowed it down to the specific third-party software that is causing the issue.  If the issue is present then add them all back and repeat with the next folder.  It's most likely related to some type of security or network software.  Since you have VPN software, you can try removing the plists related for the VPN software first before doing the above steps.  Remember, a restart is required for the changes to take effect.

  • by xingheng,

    xingheng xingheng Apr 11, 2016 9:58 AM in response to chroot
    Level 1 (5 points)
    Mac OS X
    Apr 11, 2016 9:58 AM in response to chroot

    Thanks chroot! I found it, it named "com.disobediently.net-preferences.plist" in /Library/LaunchDaemons, the core script /etc/change_net_settings.sh did the stupid! I just google it "/etc/change_net_settings.sh" and found someone encountered the same issue, too.

     

    Anyway, great thanks for your tips! I knew the safe mode and forgot it completely, thanks for your sharing!

  • by xingheng,

    xingheng xingheng Apr 11, 2016 10:03 AM in response to Gin.
    Level 1 (5 points)
    Mac OS X
    Apr 11, 2016 10:03 AM in response to Gin.

    Gin, chroot's solution is worth applying.

  • by Esquared,Helpful

    Esquared Esquared Apr 24, 2016 11:20 PM in response to xingheng
    Level 6 (8,518 points)
    Mac OS X
    Apr 24, 2016 11:20 PM in response to xingheng

    For future reference: this item is related to the "VSearch" ad-injection malware. See the instructions by Linc Davis in this topic: Re: Remove adware (offerz4u/eshopcom) from safari

  • by Rozita N,

    Rozita N Rozita N Oct 3, 2016 2:48 PM in response to chroot
    Level 1 (4 points)
    Oct 3, 2016 2:48 PM in response to chroot

    your solution worked for me too thanks