[MacTUG] Fix Wi-Fi Problems in OS X Yosemite

Glenn Anderson anderson at uwaterloo.ca
Mon Oct 27 10:38:22 EDT 2014




http://osxdaily.com/2014/10/25/fix-wi-fi-problems-os-x-yosemite/

Fix Wi-Fi Problems in OS X Yosemite

Some Mac users who upgraded to OS X Yosemite have discovered a variety of wireless network connectivity issues, ranging from dropping wi-fi connections, to an inability to connect to the outside world despite being connected to a wifi router, even suddenly and strangely slow internet speeds. These network issues seem to occur most often on Macs that have updated to OS X Yosemite from Mavericks rather than those who performed a clean Yosemite install<http://osxdaily.com/2014/10/18/clean-install-os-x-yosemite/>, which could suggest the issue has to do with improper network setting and preferences, or even a corrupted file somewhere. That’s a good thing, because it should mean a resolution is fairly easy to implement, as we’re about to show you.

It should be noted that it’s difficult to point to a single cause for sudden and unexpected wireless troubles with any OS X version, and there may be different causes for different users. Accordingly, it’s challenging to offer a single solution to the Yosemite Wi-Fi problems that users are experiencing. With that said, we’ve been able to resolve the problem for many Macs by using the steps outlined below. This involves editing some system level configuration files, and you should probably start a Time Machine backup<http://osxdaily.com/2010/07/21/how-to-do-manual-backups-with-time-machine/> before proceeding just to be on the safe side of things.

1: Remove Network Configuration & Preference Files

Manually trashing the network plist files should be your first line of troubleshooting. This is one of those tricks that consistently resolves even the most stubborn wireless problems<http://osxdaily.com/2012/11/30/resolving-stubborn-wi-fi-connection-problems-in-mac-os-x/> on Macs of nearly any OS X version. This is particularly effective for Macs who updated to Yosemite that may have a corrupt or dysfunctional preference file mucking things up:

  1.  Turn Off Wi-Fi from the Wireless menu item
  2.  From the OS X Finder, hit Command+Shift+G and enter the following path:

/Library/Preferences/SystemConfiguration/
[trash-network-configuration-settings-os-x-yosemite-wifi]

  3.  Within this folder locate and select the following files:

com.apple.airport.preferences.plist

com.apple.network.identification.plist
com.apple.wifi.message-tracer.plist

NetworkInterfaces.plist

preferences.plist

  4.  Move all of these files into a folder on your Desktop called ‘wifi backups’ or something similar – we’re backing these up just in case you break something but if you regularly backup your Mac you can just delete the files instead since you could restore from Time Machine if need be
  5.  Reboot the Mac
  6.  Turn ON WI-Fi from the wireless network menu again

This forces OS X to recreate all network configuration files. This alone may resolve your problems, but if you’re continuing to have trouble we recommend following through with the second step which means using some custom network settings.

2: Create a New Wi-Fi Network Location with Custom DNS

What we’re doing here is creating a new network location which is going to have a configuration different from the defaults. First, we’ll use a completely new network setup. Then, we’ll set DNS on the computer rather than waiting for OS X to get DNS details from the wi-fi router, which alone can resolve many issues with DNS lookups, since Yosemite seems to be finicky with some routers. Finally, we’re going to set a custom MTU size that is slightly smaller than the default, which will get rejected less often by a router, it’s an old netadmin trick that has long been used to fix network troubles.

  1.  Open the  Apple menu and go to System Preferences, then choose “Network”
  2.  Pull down the “Locations” menu and choose “Edit Locations”, then click the [+] plus button, give the new network location a name like “Yosemite WiFi” then click Done

[connected-wifi-network-osx-yosemite]

  3.  Next to “Network Name” join your desired wifi network as usual
  4.  Now click the “Advanced” button, and go to the “DNS” tab
  5.  Click the [+] plus button and specify a DNS server – we’re using 8.8.8.8 for Google DNS in this example but you should use the fastest DNS servers you can find<http://osxdaily.com/2010/02/23/find-a-fast-dns-server/> for your location, it will vary. You can also use your own ISP DNS servers
  6.  Now go to the “Hardware” tab and click on ‘Configure’ and choose “Manually”
  7.  Click on MTU and change it to “Custom” and set the MTU number to 1453 (this is a networking secret from ancient times, and yes it still works!), then click on “OK”

[custom-mtu-setting-wifi]

  8.  Now click on “Apply” to set your network changes

Quit and relaunch any apps that require network access, like Safari, Chrome, Messages, Mail, and your wireless connectivity should be flawless and back at full speed at this point.

Unload & Reload discoveryd to Fix DNS & Wi-Fi Failures in OS X Yosemite

Another trick that was left in the comments<http://osxdaily.com/2014/10/25/fix-wi-fi-problems-os-x-yosemite/#comment-713163> (thanks Frank!) involves refreshing the discoveryd service by unloading and reloading it with the launchctl command. This is a bit curious but apparently it works for some users, suggesting there could be an issue with discovery or resolving DNS on some Yosemite Macs. It’s certainly worth a try if the above tricks failed to resolve your wi-fi connectivity problems in OS X 10.10, as there are a fair amount of positive reports with this one:

  1.  Open Terminal (found in /Applications/Utilities/ or with Spotlight) and enter the following command:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

  2.  Hit return and enter an admin password to use the sudo command
  3.  Now run the following command to reload discoveryd (this used to be called mDNSResponder)

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

  4.  Again hit Return to finish the command

You may need to relaunch apps that require network connectivity. Note that if you reboot the Mac with this one, you will have to repeat the above steps to unload and reload discoveryd into launchd.

Bonus OS X Yosemite Wi-Fi Troubleshooting Tricks

Here are some other less than ideal solutions that have been reported to remedy wi-fi issues in OS X Yosemite.

  *   Join a 2.4GHZ network (N network) – some users report no trouble with 2.4GHz networks
  *   Set the wi-fi routers 5GHz (G) channel to be somewhere between 50-120
  *   Turn Off Bluetooth – We have seen several reports that disabling Bluetooth will resolve wifi problems with some networks, but this is obviously not appropriate for Macs that have bluetooth accessories

If none of the above works, there could be other problems. Sometimes starting fresh with a clean install<http://osxdaily.com/2014/10/18/clean-install-os-x-yosemite/> could resolve them, or if you believe the problem to be a bug and you had a trouble free experience in prior versions of Mac OS, you could always downgrade from OS X Yosemite to Mavericks<http://osxdaily.com/2014/10/22/downgrade-os-x-yosemite-to-mavericks/> again until an update to Yosemite arrives to resolve the issue once and for all.

Have you experienced wireless connectivity issues with OS X Yosemite? What have you tried, and how did you resolve them? Let us know what has been working to remedy your wifi troubles by leaving a comment!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20141027/f514f318/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trash-network-configuration-settings-os-x-yosemite-wifi.jpg
Type: image/jpeg
Size: 56120 bytes
Desc: trash-network-configuration-settings-os-x-yosemite-wifi.jpg
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20141027/f514f318/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connected-wifi-network-osx-yosemite-610x527.jpg
Type: image/jpeg
Size: 48851 bytes
Desc: connected-wifi-network-osx-yosemite-610x527.jpg
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20141027/f514f318/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: custom-mtu-setting-wifi.jpg
Type: image/jpeg
Size: 20060 bytes
Desc: custom-mtu-setting-wifi.jpg
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20141027/f514f318/attachment-0005.jpg>


More information about the MacTUG mailing list