You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Dec 23, 2013 2:38 PM in response to MarkH356

I definitely think this is a Mavericks issue. My iMac running Mavericks is the ONLY system in the house that drops the network randomly while all other systems never lose the network. No idea how to resolve this, but here is the workaround I'm posting:

I've had the 'network drop' issue with my Airport Extreme for the last 2 months. It reconnects when I pull the ethernet cable and plug it back in. I've tried downgrading the AE firmware, resetting to factory, etc. Nothing worked. I finally threw in the towel and created a script that monitors my network connectivity and restarts my interface if it senses it has dropped:


##############

#!/bin/ksh

while true

do

yup=`ping -c1 -t2 www.google.com|grep from`

if [[ -n $yup ]]

then echo "Internet is connected!"

else

ifconfig en0 down; ifconfig en0 up

echo "Down at `date +%m%d%Y%H%M%S`">>./dropped.out

fi

sleep 5

clear

done

###############


I know its a workaround, but its saving me the headache of constantly pulling my cable and putting it back in!


Good luck!

-Mike Gray

Dec 23, 2013 5:13 PM in response to mikengray

Great idea! If we can find out when it happens we may be able to find somehing in Console. I am going to try this out, thanks. Also, my Mac is also the only one that has these random issues. Of counrse my Mac is one that I also had to replace the display within a year and then the logic board went out right after the warranty so I am not too surprised of another issue. People often say how great and reliable these machines are bit I have had nothing but problems with this and the amount of money it takes to keep it running make me wonder if it's worth it. Perhaps a cheaper more reliable $300 linux machine will be my next machine the next time a major component fails on this POS.

Dec 23, 2013 8:36 PM in response to HaveOneOfEach7

Well I've had zero luck trying to correlate the drops with anything in the logs. But it definitely happens more often when I'm doing more intense network traffic like RDPing into work. Unless we could get into debug mode on the AE, we may be out of luck trying to troubleshoot this. Right now the script polls every 5 seconds, but I may have to bump it up to 4 or 3 seconds. Very frustrating! Please post if you find anything!

Dec 23, 2013 9:13 PM in response to Reforger

I removed all my previous locations, created a new one, and turned off bluetooth. Finally, my Macbook Air has been working as it used to before upgrading to Mavericks i.e. when I open the lid it connects to WiFi instantly and it can now find a signal that it was already using before I closed the lid. I have had several days of repeat success at home and away from home.


When I turn bluetooth on the problem returns, so now I have a toothless computer thanks to Mavericks. Good thing I like the trackpad. After the last few weeks, I now see many many threads here when searching for WiFi Mavericks issues. It seems to disingenious for Apple to host these discssions without reading, consolidating, moderating oor acknowledging a problem in any way. For those of you here, thanks for keeping the discussion going and sending your feedback, and thanks for letting me vent.

Dec 25, 2013 7:36 AM in response to n00c

Now that it seems the problem has been isolated, I urge everyone to submit feedback so that Apple knows exactly what's wrong and what causes/fixes the issue.


Here's the feedback I just submitted. Feel free to use/adapt it:


When waking from sleep, my Macbook Air (MBA) frequently loses the connection it previously had to the wireless network it had prior to going to sleep. This happens regardless of where I am: my home, my office, or out on the road.


After a lot of troubleshooting (including many calls to AppleCare support), it has become apparent that the problem involves bluetooth. When I completely turn off bluetooth in System Preferences, my MBA instantly reconnects to the network when waking from sleep, as expected. As soon as I turn bluetooth back on, the problem reappears.


Turning off bluetooth in order to be able to connect to the internet is obviously not a suitable long-term solution, so I am hopeful this will be addressed in a software or firmware update. The recent 10.9.1 update didn't help.

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 Account.