Solved: message "You are not connected to the Internet" after idle sleep

Summary: What worked for me was to turn off IPv4 and IPv6 on my unused interface.
The problem was that after my computer had been in sleep mode, Safari would say:
"You are not connected to the Internet."
or "softwareupdate -l" would say:
"This computer’s Internet connection appears to be offline."
Yet Firefox worked OK and traceroute also showed the connection was fine.
Digging deeper (though only later, after I found the command), "scutil -r" indicated a problem with DNS lookup:
$ scutil -r developer.apple.com
Not Reachable
$ scutil -r 17.254.2.129
Reachable
I'm using 10.6.6 on a Mini (model Macmini1,1), which has a wired ethernet connection on en0 and an AirPort on en1. I use the wired connection, but I also configured the AirPort just because, and then turned it off in the network preferences. I use a static (manually-configured) IPv4 address on en0 and DHCP on en1 (when it's up, which is only for experimenting). I don't use IPv6 as such, though I've left it enabled.
I was initially confused, thinking the problem was intermittent, though it's not. I tended to assume that because the display had gone into standby the computer must be sleeping, without checking that the power light was dimming and brightening, indicating sleep mode. Later I found the "pmset -g" command to display the power management settings. Among the settings is:
ttyskeepawake 1
This means that if I had a shell session open in Terminal, which I did quite often when investigating the problem, the computer put itself into idle sleep later than if I didn't have the session open. The times in Energy Saver settings in System Preferences seem not to be very accurate anyway. For instance, with the default computer sleep and display sleep settings of 10 minutes and a shell session open, I've seen it take 17m25s for the display to blank and a further 14m16s for the computer to sleep, for a total of 31m41s.
The problem only occurs after an idle wait. It doesn't occur after a software sleep (entered from the Sleep entry in the Apple menu or using the keyboard shortcut) or after pressing the power button momentarily.
One way I found to fix the problem was to turn the AirPort on and then off again through Network Preferences (or the menu bar item). Later I found that disconnecting and reconnecting the ethernet cable also fixed the problem. I hoped to find a better way.
What led me to this halfway house solution was noticing that if I turned the AirPort on and then off again, entries for en1 still remained in the routing table. These entries were for IPv6 link-local and multicast networks, as in this edited output from "netstat -nr":
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UH lo0
fe80::%lo0/64 fe80::1%lo0 Uc lo0
fe80::1%lo0 link#1 UHL lo0
fe80::%en0/64 link#4 UC en0
fe80::216:cbff:fexx:xxxx%en0 0:16:cb:xx:xx:xx UHL lo0
fe80::%en1/64 link#6 UC en1
ff01::/32 ::1 Um lo0
ff02::/32 ::1 UmC lo0
ff02::/32 link#4 UmC en0
ff02::/32 link#6 UmC en1
Even with the AirPort switched off, ifconfig showed it as being up:
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:17:f2:xx:xx:xx
media: autoselect (<unknown type>)
status: inactive
I don't know if these observations are relevant, but anyway they led me to the solution (well, workaround). The way I finally fixed the problem was as follows.
1. Create a new location in Network Preferences. (This isn't strictly necessary, but it allowed me to keep the AirPort configuration (including my wireless password) intact in the default Automatic location.)
* Click on the Location pull-down
* Click Edit Locations...
* Click +
* Enter new location name (I called mine Wired-static)
2. Configure the Ethernet interface with its static address. (If using DHCP, I'd have skipped this step as DHCP is the default.)
3. Go to the AirPort configuration (even though it's shown as Off).
* Click on Advanced
* Click on TCP/IP
* Select Off for both IPv4 and IPv6
4. After clicking Apply in Network Preferences, a new "Location" item appears in the Apple menu between "Dock" and "Recent Items". Select the new location. This setting sticks across boots.
I hope this helps anyone else in a similar situation. Maybe if you use wireless it would help to turn off IPv4 and IPv6 on the Ethernet interface?

Try:
- A reset. Nothing is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Power off and then back on the router
- Reset Network Settings: Settings>General>Reset>Reset Network Settings
- iOS: Troubleshooting Wi-Fi networks and connections
- iOS: Recommended settings for Wi-Fi routers and access points
- DId the iPod ever successfully connect to the network?
- Does the iPod successfully connect to other networks?
- Do other devices successfully connect with your network?

Similar Messages

  • I get the message 'You are not connected to the internet.  Online functionality is not available'  But I am connected to the Internet

    I get the message'You are not connected to the internet.  Online functionality is not available'  I am connected so what can I do?

    Try:
    - A reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset Network Settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - DId the iPod ever successfully connect to the network?
    - Does the iPod successfully connect to other networks?
    - Do other devices successfully connect with your network?

  • Safari: You are not connected to the internet (... I am!)

    Safari has decided not to like me recently, and frequently presents me with the message "You are not connected to the internet" when using a wireless connection.
    On my network there is a Windows PC (wired), an iBook and a PowerMac, both 802.11G (and both up to date). The PowerMac was previously hooked up with CAT5 and no problems existed.
    I know that Safari is incorrectly showing this error, as other apps such as Adium, Colloquy, Transmission... and even the Windows PC are still able to connect to, and use the internet whilst Safari presents the message.
    I am using a NetGear DG834G router, with the latest firmware installed.
    Does anyone have an idea what could be causing the problem?

    Hi! -- I'm a V.A.N. -- Very Advanced Newbie (since 1985!) -- so I probably cannot help you solve the problem. However, I do have the same issue except with a twist. I CANNOT get on the internet with Safari or Omniweb, but I CAN get on with Mozilla. I thought it was my t-mobil connections at my Starbucks office(s), but Mozilla works. Strangely, I could not get Mail to access the internet either until I got on with Mozilla. All through, Network Diagnostics said the connection was working, but Safari, Mail and OmniWeb would not. I wonder what Mozilla has, or does not have, that the others do, or don't? I'm pretty attached to staying with Safari, so I hope someone can find a solution. -- Thanks for listening, DSLyoga
    PowerBook G4 - 12"   Mac OS X (10.4.6)  

  • You are not connected to the internet error

    Recently, my old Apple iMac 9.1 - OS X V10.5.8 - stopped connecting to the internet with error message "You are not connected to the Internet".
    Having checked all other devices on the WIFI network, there seems to be is no reason for issue.
    Now utilising ethernet cable, but with same error message.
    Is there any I am missing or a possible virus closing out all connections ...
    Can someone please provide any guidance ...

    The rule is, your Mac will try to send packets bound for the Internet to the Topmost Interface on
    System Preference > Network
    Be sure to re-order them so that Ethernet is on top if that is what  you intend to use:

  • Switcher found "You are not connected to the Internet" message confusing

    While demonstrating to my brother - a long-time Windows user - that an iMac solved all the problems with Windows XP that he is constantly complaining about to me, he saw Safari's "You are not connected to the Internet" message when the web server for the page didn't respond very quickly. (There wasn't any network problem, or anything wrong with Safari. MacOS or the iMac.) Clicking the 'Reload current page' button brought the web page up. He was angry, saying that the iMac was clearly connected to the Internet as he'd seen me plug in the network cable! He's using this as one of his reasons that "PCs are superior to Macs"!
    While I think this is probably a bit of "I don't want to admit that I've been wrong" coming from him (his Windows system has been riddled with malware several times, despite him having kept up to date with Windows updates, using the Windows firewall, a broadband router with firewall, and having tried several anti-virus suites!), I must admit that he has a (limited!) point.
    Couldn't the developers cause Safari to display the message "The web page you have requested is not immediately available, still trying - please wait." instead and then, if the web page cannot be displayed after (say) three minutes, and some kind of autromatic diagnostics show that the system still has a network connection, the message "That web page is apparently not available." Only if behind-the-scenes diagnostics show that the Mac has lost its network connection should one ever see the "You are not connected to the Internet" message, in my opinion.
    MacBook 1 etc   Mac OS X (10.4.8)  

    I have the same problem; if I leave the computer on long enough (usually asleep overnight), when I wake it up, Safari will present the "You are not connected to the Internet" message for any page, and Mail will display the exclamation-point-in-a-triangle for all accounts that says it's offline. Yes, Software Update also complains of a "network problem."
    Meanwhile, Firefox or SSH sessions via Terminal will work fine, and both network diagnostics and System Preferences claim that the machine is, indeed, connected just fine with an IP lease and everything. This is over a wired Ethernet connection, and, yes, I've tried swapping the cable between the Mac Pro's two jacks.
    I'm a long-time Mac user. I've fixed disk permissions; I've flushed Safari's cache; I've done everything described here. Rebooting always fixes the problem -- but it then recurs when the machine has sat or slept for long enough.
    Since Safari and Mail are both affected, while Firefox and shell connections are not, it seems fairly clear it must be a bug in some part of the OS relating to both those Internet products. It doesn't cripple the machine, but it's definitely inconvenient, which is not what I expect from Apple products.

  • "You are not connected to the internet" message

    Until this morning, Safari worked pretty much ok. Now, when I launch it, I get the "you are not connected to the internet" page. Firefox and email work fine and network diagnostics verifies a proper connection. I can't even get to "software update."

    I have the same problem; if I leave the computer on long enough (usually asleep overnight), when I wake it up, Safari will present the "You are not connected to the Internet" message for any page, and Mail will display the exclamation-point-in-a-triangle for all accounts that says it's offline. Yes, Software Update also complains of a "network problem."
    Meanwhile, Firefox or SSH sessions via Terminal will work fine, and both network diagnostics and System Preferences claim that the machine is, indeed, connected just fine with an IP lease and everything. This is over a wired Ethernet connection, and, yes, I've tried swapping the cable between the Mac Pro's two jacks.
    I'm a long-time Mac user. I've fixed disk permissions; I've flushed Safari's cache; I've done everything described here. Rebooting always fixes the problem -- but it then recurs when the machine has sat or slept for long enough.
    Since Safari and Mail are both affected, while Firefox and shell connections are not, it seems fairly clear it must be a bug in some part of the OS relating to both those Internet products. It doesn't cripple the machine, but it's definitely inconvenient, which is not what I expect from Apple products.

  • I keep getting a message "safari cannot open page [page name with header information] because you are not connected to the internet.

    I keep getting a message "safari cannot open page [page name with header information] because you are not connected to the internet.  Then I check CNN for a time stamp, and I am connected to the internet.  I have reset everything suggested in other posts, ensured any other device that could be hogging bandwidth is off, the router is reset, the iPad is reset.  The other devices are not having this problem, and it happens on both places I use the iPad, the university library, (getting a second degree after a change in a long time career and at home. Any insight into this issue would be appreciated.

    Saing yu tried everthing provides little information to us.  We do not know what you tied.
    Have you tried:
    - Resetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Powering off and then back on your router- Resetting network setting: Settings>General>Reset>Reset Network Settings
    The toubleshooting here:
    iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections
    - Does you iPod conenct to other networks?
    - Do other devices connect to your network?

  • ITunes could not contact the iPhone software update server because you are not connected to the internet...???

    Ok I’m completely lost here....
    I’m running Microsoft Windows XP Home Edition Service Pack 3 (Build 2600), I updated iTunes to 11.0.2.25 and some other updates for windows last night on my laptop. I try connecting to download the iOS 6.1.2 update for my iPhone 4 and my iPhone 5 via iTunes. I am getting this message for both "iTunes could not contact the iPhone software update server because you are not connected to the internet. Make sure your internet connection is active and try again." Everything was fine with connecting prior to running these updates because I downloaded the 6.1 update with no problems when it came out.
    What I have done so far with which has made no difference:
    Checked my internet connection
    Changed my internet connection
    Signed out of iTunes and then signed back in
    Ran diagnostics via iTunes, comes back with: Network interfaces verified- Internet connection failed- Secure link to iTunes store verified
              Connection attempt to Apple web site was successful.
              Connection attempt to browsing iTunes Store was successful.
              Connection attempt to purchasing from iTunes Store was successful.
              Connection attempt to iPhone activation server was successful.
              Connection attempt to firmware update server was successful.
              Connection attempt to Gracenote server was successful.
              Last successful iTunes Store access was 2013-02-20 20:40:48.
    Disabled firewall, spy sweeper, virus scanner
    start>run>cmd> typed "netsh winsock reset"
    Rebooted
    Checked the parental controls in iTunes
    Start>control panel>internet options>connections tab> lan settings> selected the "automatically detect settings"
    Deleted iTunes and reinstalled iTunes
    When I would "ping gs.apple.com" it would come back with "request timed out" no matter what internet connection I was on, so I went into the hosts file  start>my computer>(C:)>WINDOWS>system32>drivers>ect>HOSTS and added  "#     127.0.0.1     gs.apple.com". Now it will ping gs.apple.com just fine but still comes up with the "iTunes could not contact the iPhone software update server because you are not connected to the internet" message in iTunes when i try to download the update.
    If anyone can come up with any ideas that I haven’t tried, please let me know. This is keeping me back from updating both of my phones along with if anything should ever happen to them; restores as well. 

    im computer is connected i can go to the apple store through itunes but when i plug my phone in i keep getting that alert... i plugged my phone in to update it after the apple loaded the itunes icon and a usb showed up.

  • "itunes could not contact the ipod software update server because you are not connected to the internet" Help?

    Hello all, new to the forums.
    I've been recieving the error message "itunes could not contact the ipod software update server because you are not connected to the internet". This problem didn't occur at all for the past 2 years of using itunes.
    I've already scanned through numerous websites and forums for help, but none of them worked.
    This  set of instructions resulted in no change to any of the problems, though iTunes lists that as the supposed solution.
    # Open Internet Options from control panel.
    # Click the Connections tab.
    # Click the LAN Settings button.
    # Select the Automatically detect settings checkbox.
    Others include installing IE7, which that didn't work either.
    Can anyone help?

    Here it is:
    Microsoft Windows 7 x64 Ultimate Edition (Build 7600)
    LENOVO 2537FC4
    iTunes 10.3.1.55
    QuickTime 7.6.9
    FairPlay 1.11.17
    Apple Application Support 1.5.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.4.1.2
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 2.0.5.0 (214.3)
    Gracenote SDK 1.8.2.457
    Gracenote MusicID 1.8.2.89
    Gracenote Submit 1.8.2.123
    Gracenote DSP 1.8.2.34
    iTunes Serial Number 003DB3100363E3C0
    Current user is not an administrator.
    The current local date and time is 2011-06-16 17:03:57.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    NVIDIA, NVIDIA NVS 3100M
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 10.3.1.55 (x64) is currently running.
    iTunesHelper 10.3.1.55 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:          {505BB17D-FA14-4FA0-9D77-F7998FEBB435}
    Description:          Intel(R) Centrino(R) Advanced-N 6200 AGN
    IP Address:          192.168.0.3
    Subnet Mask:          255.255.255.0
    Default Gateway:          192.168.0.1
    DHCP Enabled:          Yes
    DHCP Server:          192.168.0.1
    Lease Obtained:          Thu Jun 16 16:54:56 2011
    Lease Expires:          Fri Jun 17 16:54:56 2011
    DNS Servers:          192.168.0.1
                        68.94.156.1
    Adapter Name:          {610821DE-0532-4C65-839B-B74B65859FBA}
    Description:          Intel(R) 82577LM Gigabit Network Connection
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Wed Dec 31 16:00:00 1969
    Lease Expires:          Wed Dec 31 16:00:00 1969
    DNS Servers:
    Adapter Name:          {10983C8A-FCDA-4B2F-8A89-E1596BA6B7BA}
    Description:          Bluetooth Device (Personal Area Network)
    IP Address:          0.0.0.0
    Subnet Mask:          0.0.0.0
    Default Gateway:          0.0.0.0
    DHCP Enabled:          Yes
    DHCP Server:
    Lease Obtained:          Wed Dec 31 16:00:00 1969
    Lease Expires:          Wed Dec 31 16:00:00 1969
    DNS Servers:
    Active Connection:          Broadband Connection
    Connected:          No
    Online:                    No
    Using Modem:          Yes
    Using LAN:          No
    Using Proxy:          No
    SSL 3.0 Support:          Enabled
    TLS 1.0 Support:          Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-06-16 15:35:33.

  • You are not connected to the Internet- keeps happening

    New iMac- We click on Safari and the internet comes up and is working.
    Then for some reason I lose the connection at various times.
    The following messages come up:
    1) You are not connected to the Internet
    I click on Network Diagnostics
    2)Choose network port configuration
    I click on Airport
    3) Select Airport Network
    Select the Wireless Network
    I click the wireless network for us which is NETGEAR
    I click continue
    4) Do you use DSL or a cable modem?
    I click No
    Then somehow the internet comes up again
    Am I setting this up properly? Is there something else I can do so we don't go through this
    several times a day.

    I just purchased a new MacBook 10.5.1 w/ I too experience the same problem with a new Macbook running 10.5.1 and Safari Version 3.0.4 (5523.10.6). I have 4 other computers connected via 802.11g (PC's). The same message occurs particularly when another browser window is open. The browser seems MUCH slower than IE (bummer!) and it often displays the "You are not connected to the Internet" message.
    I have a longstanding, stable and reliable network so the network (DNS, b/w, connection, etc.) is not the issue especially given all the other (3) laptops that use the network wirelessly.
    Performance does not improve even when wired but again, ALL my other computers perform much better on wireless than this new MacBook. Kinda bums me out.....the laptop I was hoping to replace is a much older IBM Thinkpad w/ a 1GHz CPU and 768K of RAM but it performs much better than MacBook/Safari!! Puzzling given the 5 year old technology, less powerful h/w and Microsofts bloated code but its not even close.
    Any help or suggestions? I really want to love this machine more than the PC/MS platforms....HELP!

  • "You are not connected to the internet"....sometimes.

    I've had to write this in IE on XP in Parallels as it is the only reliable way I can access the web. Since upgrading to 10.6, Safari (and Firefox to a lesser extent) has been giving me frequent (and instant) "You are not connected to the internet" errors. If I try another site I may get there straight away and then re-trying the original site may get me there. Or not. Very intermittent. Also, when finally accessed some sites aren't rendering properly. Right now in Safari I have Apple's site up with 18 errors, no graphics, default fonts, no layout. Activity shows the errors as "This computer's internet connection appears to be" - the rest of the message cannot be seen.
    The other way I could have posted this is to use my wife's MacBook running 10.5 - no problems there. It's almost like it wants an instant DNS lookup and if that isn't forthcoming it spits. But then, why "not connected"? Wouldn't it be "Server cannot be contacted"? What is it that prompts Safari to believe the internet is not connected. This is a major pain!

    This is interesting! Something is not correct here. Either the time I took to back-up on Time Machine prior to installing OS X 10.6 caused my MacBook Pro to overheat overnight or the OS X 10.6 has a problem with the ethernet card or internet. To clarify, I have yesterday and today upgraded a MacBook Pro, iMac and MiniMac with OS X 10.6. The only problem I have is the MacBook Pro will not connect to the internet via cable to the router. All the machines including the MacBook Pro connect via ethernet or WiFi to my network no problem. The MacBook Pro even connects to the internet via WiFi but not ethernet. So I suspect overheating!. See what transpires when I start it up again.

  • "You are not connected to the internet"  with a green light on Airport

    Using airport extreme with my MacBook, The airport shows a steady green light, but I cannot connect to the internet and my Safari shows "You are not connected to the internet".
    I tried getting a direct connection, but didn't work, I will be taking my MacBook to have it checked tomorrow.
    I called my ISP, thought had to do with my DSL modem, but it works fine with a direct connection to the PC.
    I have my network checked with a check mark beside it.
    Any help?

    For future references, I have come to solve my own problem and I'm now on line.
    After I reset my DSL modem, I went into my System Preferences, Network, then Sharing.
    Clicked on Internet tab, and chose " Share your connection using Airport".
    In my Airport Options, I checked the inputs to make sure the settings match.
    And viola, I'm online and 2 floors away from my Airport Extreme.
    Hope this comes in handy for future users.
    I'm still going to get my Ethernet card checked tomorrow.

  • You Are Not Connected to the Internet - it happens too often

    Month old MBP.
    Very often I'm surfing the net wirelessly and the next thing I get is the annoying message saying: You Are Not Connected to the Internet. This happens at my office (closed network), my house (closed network, and at a friend's house (open network). I am sure if I were to wirelessly use the MBP elsewhere I would frequently get the same message.
    So I click on the Network Diagnostics button... it shows the two bottom buttons in red (internet & server), so I click through the procedure... it says there is nothing wrong and the two bottom lights change back to green. In other instances, it gets to the end of the process and asks to restart a device, so I click OK (without touching the modem or restarting anything) and the two green lights appear again; leaving me able to surf as per usual.
    I now have to leave Network Diagnostics open so I can quickly fix the connection.
    Any ideas?

    This happens all the time to my 2-year old 17" and never to my brother's 15" that was purchased in August. I still have a Wi-Fi connection but the internet isn't working. Usually going down to the basement and resetting my airport and DSL box does the trick, but it's still a pain in the behind. I think I read somewhere that Apple knows about and is working on this issue.

  • You are not connected to the internet - Safari can't open the page

    After wake up Mac OS X 10.6.8 from sleep, Safari 5.1.7 on Ethernet does not connect to web servers:
    "You are not connected to the internet" "Safari can't open the page"
    The issue disappears after restarting the Mac. Is there a way to fix it besides restarting?

    Some instructions for removing Community Toolbar are available in this thread: https://discussions.apple.com/message/15868085#15868085

  • I am unable to get past the first step of Winston Churchill's answer because my phone says "checking for a software update failed because you are not connected to the Internet". Did my WiFi connection also get lost?

    I am unable to get past the first step of Winston Churchill's answer because my phone says "checking for a software update failed because you are not connected to the Internet."  Did my iphone's WiFi connection also get lost with the Contacts, Mail and Text Messages?  When I tried the software update, as recommended by Winston Churchill, the iphone was connected to my desktop which is connected to the Internet.

    You can't use your computers Internet connection to update your phone from the phone itself. If you want to use the computers Internet connection to update your phone you must update it through iTunes.

Maybe you are looking for