Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Losing network or internet connection after sleep/wake

I've created this as a new thread as it seems to be more prevalent with Mavericks and the very last update to ML but the problem has been around a while. It does seem to affect all types of Mac though from the other threads I have read and posted to.


The problem is essentially this: Intermittently, after a system sleep, the Mac appears to have no network connectivity (local and internet) and for a while the only reliable solution was to force the renewal of the DHCP lease or turning WiFi off and on again, after which the network would be restored.


There have been several theories postulated and a number of fixes, such as the DHCP renew, suggested but none of them have lasted for long but I now think I have this fixed as the following been 100% stable on my Mac Pro with wired ethernet connection for the last two weeks with no recurrences. I see no reason why this would not work on other Macs or connection types.


The problem seems to lie in the automatic location setting in the network settings, so here's what I did...


  1. Network settings - Location - Edit Locations
  2. Add a new location .. "Home" for example
  3. With home selected, click the cogwheel below the network services and choose "Set Service Order"
  4. Reorder the services so your preferred connection type is at the top
  5. After that, select each service in turn (assuming you have a few - like Bluetooth PAN etc)
  6. Make the services you are not using inactive
  7. Apply


Please post a reply if this works for you - it's been dragging on far too long and needs sorting out by Apple but if this is a good workaround for people then it will certainly do for now.

Mac Pro (Mid 2010), OS X Mavericks (10.9)

Posted on Nov 7, 2013 11:53 PM

Reply
196 replies

Jul 4, 2015 11:54 PM in response to Reforger

Best way I found, which by the way seems to have also made my Macbook Pro Internet faster, is to go to network settings / advanced / DNS


from here add 2 new DNS servers to the list, and delete any other that may be in the list, if you can't delete all of them don't worry about it, they will just simply get replaced, add:

8.8.8.8

8.8.4.4


These are google servers and are free, they are know for having good speeds and better security over the default that you router uses.


P.S.

The periods ARE important, after you add these servers the internet will not drop any more and will seem a bit more responsive as well!!!!User uploaded file

Jul 6, 2015 5:32 AM in response to TheRealPorky

The speed up could be related to the DNS servers assigned by your ISP being slower or overloaded but it should not affect you LAN or WiFi working in any way.


I have to said that after dealing with this problem for a long time (Reforger's work around made it better but it didn't completely fixed) since I updated to 10.10.4 the problem seems to be gone, all related to the removal of discoveryd apparently.

Jul 6, 2015 4:39 PM in response to Diegus83

I've been following this thread for months, tried many of the suggested solutions. Chances are, there are several separate issues going on, with similar symptoms, but different causes and solutions. The miracle solutions posted so far on this thread have been generally disappointing.


In my case, I'm on a new Mac Mini. Today, I upgraded to 10.10.4. We'll see if that contains fixes.


Specifically, there is one web page I often use throughout the day. It's usually open in my browser. If I don't use the machine for awhile (how long? Not sure... 30 to 60 minutes, maybe?) the page won't refresh and I have to wait for it for a long time, maybe two or three minutes, possibly longer. At these times, other internet connectivity is also lost. I'm not sure if the onset of the problem coincides with the screen going to sleep.( I'm usually busy and distracted when not facing the screen.) I'm guessing it does.


The problem began when I got my new Mac Mini. At the same time, I got a new bluetooth keyboard and mouse, and also a new Time Capsule. I now use the Time Capsule's WiFi, instead of the WiFi in the modem I get from AT&T. There were several hypotheses to test. Connecting by ethernet instead of WiFi didn't help. That ruled out the possibility that the WiFi on the router was timing out. I tried removing the Time Capsule. That didn't help. Same problem with the old modem/router. I'm planning to get a wired keyboard, to see if Bluetooth is part of the problem, haven't gotten around to it, yet.


I made one change that instantly and permanently eliminated the problem. Not very original, I admit. System Preferences --> Energy Saver -->


"Prevent computer from sleeping automatically when display is off." Enabled


"Enable power nap" Enabled


"Put hard disk to sleep when possible" Disabled.


The problem has disappeared.


I'd rather have the computer and hard disk sleep when possible. I will turn these things on one at a time, and try to narrow it down a bit more. Will also try the wired keyboard. Will report back.

Jul 6, 2015 7:09 PM in response to Timothy Miller

I never hear of that problem happening over ethernet. Wired connections are usually much more reliable than WiFi. When I had DSL I remember a setting for "On Demand" meaning the modem would only connect when needed only, maybe yours have something similar?


I knew the problem was on OS X side because the macbook would do the same at home, office or friends houses, but never experience that problem with wired connections.


Any chance to try the mac mini somewhere else?


Sounds like you can let the hard drives sleep without problem, is always a good idea unless you only have solid state ones.

Aug 3, 2015 9:02 PM in response to Timothy Miller

Well after owning this iMac and using an older Airport Extreme for 6 years with zero issues, this really bites! Ever since I have upgraded software and bought a new Airport Extreme I am completely p i s s e d off beyond belief! I do believe this is software/hardware related as when ever my computer goes into sleep mode sure enough everything gets bumped off the network. I have my iMac wired in via high speed DSL plugged into a Modem then Airport Extreme and I also use 2 Airport Expresses, every time I have my iMac on and I am upstairs watching TV the computer goes into sleep mode and knocks everything out of whack! I have to reset everything or it will just knock one my my expresses off and I need to reconfigure it to work again! This has been going on for 2 years according to this post, and Apple better get on the frickin ball otherwise they can take their new software and shove it. <<<<<<"Sorry, frustrated rant" Currently using 10.10.4

Sep 15, 2015 6:32 AM in response to Reforger

Hopefully this post will help those who have a similar problem as I did. It was quite overwhelming to go through 2 years of posts here with individuals having similar problems but maybe not the same exact problem.


I started to notice this problem January 2015. I’ve I had the same MAC desktop computer since 2008. I currently have 10.10.5 (Yosemite). Every time my computer would go to sleep (even what seemed only to be for 5 minutes) I would have to wait for it to reconnect. This was not a problem for me a year ago. One thing I haven't been able to confirm is whether or not backup programs such as time machine or crash plan will wake up the computer and run. So far, solutions for me have included:


1. My ISP provider was using both traditional IP address servicing and something called IQ7. They came to my house and disabled IQ7. Supposedly this is known to interfere with you-tube.


2. My monitor and computer were both set to 15 minutes. I adjusted my monitor to go to sleep after 10 minutes and raised my computer to 60 minutes. I think this will psychologically fix my problem. In my case both the monitor and PC would go to sleep at the same time after 10 minutes. I’m ok with the monitor sleeping if I leave the computer for a few minutes but I am not ok with loosing my Internet connection. Since I adjusted the computer sleep to a higher setting than the monitor, I can now be aware that my computer has been dormant for 10 minutes or more and wake it back up before I loose my Internet connection. So this has been the best solution for me.


3. The other solution that I like out of these post is the solution of setting up Location Networking and a priority of which systems to run (Wifi, Ethernet, Bluetooth). While this doesn’t really have a significant effect on desktops it probably does help with a laptop.

May 24, 2016 10:08 AM in response to Reforger

No fix worked for me after weeks of trying. I ended up writing a program that basically automatically renews the DHCP when the wifi drops. According to my program, I've had 388 failures in the last 91 hours, and did not notice a single one. This program will need to be customized for your SSID, so email me at mac.wifi.fix@gmail.com and I can get you set up. Right now I'm not selling the program, just asking for donations if it works for you 🙂

Losing network or internet connection after sleep/wake

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.