Q: mac mavericks after sleep: every time wi-fi seems ok but browsers don't connect. Needs restart, or Wi-Fi network removal-addition in System Preferences. Please help.
Hello, this is a recent problem with my wi-fi connection at home. It was ok before. I've searched the web but I don't find exactly the same problem discussed so here's a description:
First, the affected mac is a MacBook Pro Retina, 13-inch, Mid 2014. Processor 2.6 GHz Intel Core i5, memory 8 GB 1600 MHz DDR3. Using OS X 10.9.5
Another mac (mac mini, OS X 10.8) uses the same home network via cable, no problems.
The problem:
Wi-Fi on the MacBook appears connected to my home network, with strong signal. Browsers work after computer restart but as soon as I close my laptop and wake it up again from sleep, they don't find any webpages (Wi-Fi still showing the strong signal). It affects any browsers and also Mail.
By shutting down the MacBook (it doesn't suffice to turn Wi-Fi off and on on the MacBook) and then restarting the router, the MacBook restarts with normal connection but only until closing the lid and waking it again from sleep.
I found a quicker way to reset the connection (but still only temporarily, i.e. until next computer sleep): In [System Preferences -> Network -> Advanced -> Wi-Fi] I can select my home network, delete it via the minus sign, select OK and Apply, go to Advanced again and click the plus sign, find my home network via the 'Choose a network' button (for this to work I have to turn off the Wi-Fi and then on again, otherwise my network will not be listed) and select it, with entering the password.
Quite complicated but this latter method has the advantage that open webpages don't have to reload like after restarting the computer.
I admit it needs patience to go through this every time.
I had contacted my network service and no problems were detected. Seems confined to the MacBook.
Just in case it matters: I had (from my cable connected computer) entered my IP in a browser's address bar and logged in my to my router and tried changing channel (turning AutoChannel off) without any effect. I also tried in [System Preferences -> Network -> Advanced _> TCP/IP] to change the DHCP configuration (IPv4 Address) manually and then back to default (also trying the Renew DHCP Lease) but the problem always shows up again.
Any obvious solution?
Adalgeir
Posted on May 19, 2015 6:53 AM
Thank you for your very detailed account of what is happening. This is the cause of the troubles you are having:
- On your Mac, with your OpenVPN and Tunnelblick setup, if a VPN is connected when your computer goes to sleep, OpenVPN leaves the network messed up and can't recover when your computer wakes up.
There are several things that can cause this, but fixing it may be as simple as putting a check in Tunnelblick's "Reset the primary interface after disconnecting" checkbox, which is on Tunnelblick's "Advanced" settings page. If that doesn't solve the problem, there are some other things to try; for those please use the Tunnelblick Discussion Group as I described earlier.
There are three things you should know:
- Tunnelblick is a user interface for OpenVPN, which is a separate program (which is included inside Tunnelblick). It is OpenVPN that actually creates the VPN.
- OpenVPN runs by itself (without Tunnelblick) when you restart a computer and a configuration is set to connect "when computer starts".
- Tunnelblick launches when you log in only if it was running when you logged out (or shut down or restarted your computer).
It is extremely common for people to not know about or fully understand #3. Because you have brought this to my attention, I may change that behavior so that Tunnelblick also launches when you log in if OpenVPN is running, which I think would be more natural and easily understood by Tunnelblick users. So thank you for bringing this up by providing such a detailed explanation of the problem.
Posted on May 25, 2015 4:04 AM