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.

My network connection completely died - "failed: 49 - Can't assign requested address"

The entire networking stack on my 2012 Retina MBP died just a few minutes ago, and I was only able to get it up and running by rebooting.


First no sites in Safari worked and then I noticed when using telnet that:

[stig@Hyperion:~]$ telnet www.allthingsd.com 80

Trying 192.0.65.213...

telnet: connect to address 192.0.65.213: Can't assign requested address

Trying 192.0.65.216...

telnet: connect to address 192.0.65.216: Can't assign requested address

telnet: Unable to connect to remote host


Strangely enough traceroute and ping worked.


In the system log there is no warning untill the network is down:


Nov 12 10:28:31 Hyperion.local mDNSResponder[62]: AppendDNSNameString: Illegal empty label in name ".weblamb.com"

Nov 12 10:28:31 Hyperion com.apple.launchd.peruser.501[164] (com.onible.iTunificationStartup[65065]): Exited with code: 1

Nov 12 10:28:31 Hyperion com.apple.launchd.peruser.501[164] (com.onible.iTunificationStartup): Throttling respawn: Will start in 10 seconds

Nov 12 10:28:33 Hyperion.local PluginProcess[65047]: CoreText performance note: Client called CTFontCreateWithName() using name "Arial" and got font with PostScript name "ArialMT". For best performance, only use PostScript names when calling this API.

Nov 12 10:28:33 Hyperion.local PluginProcess[65047]: CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.

Nov 12 10:28:33 Hyperion.local PluginProcess[65047]: CoreText performance note: Client called CTFontCreateWithName() using name "Times Roman" and got font with PostScript name "Times-Roman". For best performance, only use PostScript names when calling this API.

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111635 connectx to 88.221.96.163#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111635 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111634 connectx to 88.221.96.163#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111634 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111637 connectx to 88.221.96.163#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111637 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111636 connectx to 88.221.96.163#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111636 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111639 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111639 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111638 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111638 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111642 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111642 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111640 connectx to 23.23.14.248#80 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111644 connectx to 192.237.224.183#80 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111644 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111646 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111646 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111645 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111645 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111647 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111647 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111648 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111648 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111640 connectx to 107.22.72.129#80 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111649 connectx to 173.194.32.62#443 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111649 failed to connect

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_destination_prepare_complete 111650 connectx to 184.86.224.214#80 failed: 49 - Can't assign requested address

Nov 12 10:28:34 Hyperion.local com.apple.WebKit.Networking[2157]: tcp_connection_handle_destination_prepare_complete 111650 failed to connect



I tried flushing the routes and using ifconfig to down/up the interfaces but nothing worked.


Has anybody seen anything like this?

MacBook Pro with Retina display, OS X Mavericks (10.9)

Posted on Nov 12, 2013 2:15 AM

Reply
158 replies

Jan 14, 2014 9:14 PM in response to StigBull

Oh good, at least I'm not alone in this… As per everyone else, about once a month, the machine just chokes and dies. No new net connections can be spawned, but low-level stuff like ping and mtr still run flawlessly.


FWIW, this is a quad-core 2009 Mac Pro with 12gb RAM, now running 10.9.1 but still experiencing same **** problem…


EDIT: The other log message I get lots and lots and lots of if something about sandbox denying the right to lookup com.apple.coreservices.launchservicesd.


1/14/14 9:56:37.440 PM Google Chrome Helper[66583]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread


Also, this machine isn't doing anything particularly strenuous. About 90% of the usage is Chrome, iTunes (streaming to Airport Express), PS3 Media Server and Mail. Mail is always hung when I try and restart, but I'm not sure that is related or not.


I don't run DropBox, btw, so that's not necessarily a culprit.

Jan 15, 2014 9:27 AM in response to StigBull

This happened to me again.


Whilst not being able to make connections :-

dtruss telnet 127.0.0.1 22

socket(0x2, 0x1, 0x6) = 3 0

getuid(0x2, 0x1, 0x0) = 0 0

setuid(0x0, 0x1, 0x0) = 0 0

setsockopt(0x3, 0x0, 0x3) = 0 0

connect(0x3, 0x7F86036000E0, 0x10) = -1 Err#49 (EADDRNOTAVAIL)


netstat -na | wc -l

3218


3218 is not a lot of connections whatever they are, and telnet should be able to connect to a local address for a service that is listening.

On the presumption this is an ephemeral port problem. (see http://serverfault.com/questions/145907/does-mac-os-x-throttle-the-rate-of-socke t-creation)


I increased the number of ephemeral ports by 16384 ie

sudo sysctl -w net.inet.ip.portrange.first=32768

sudo sysctl -w net.inet.ip.portrange.hifirst=32768


Doing this brought back the ability for the machine to establish connections again, and Mail and Adium etc kicked back into life.


But after 10 minutes a different network problem manifested

Jan 14 20:24:43 mac kernel[0]: AppleBCM5701Ethernet [en0]: 8 17d LimitMinFragSize: Unable to realloc packet

Jan 14 20:24:43 mac kernel[0]: AppleBCM5701Ethernet [en0]: 0 0 transmitPacket: Failed to adjust fragment array


at this point the machine couldn't ping any address or send packets over established connections (ie ssh sessions froze), and I had to issue a reboot command from the command line (couldn't log out or switch users).


I do not see this problem as application specific, the kernel appears to be having a problem in allocating the local part of a socket, and in my case this is not because there is an excessive amount in use.

Jan 17, 2014 9:52 PM in response to StigBull

Same problem, first time it's happened to us, so I'm glad this discussion has already identified it.


- iMac 27", Late 2012; 8GB RAM; Fusion Drive; Mavericks 10.9.1, upgraded from original 10.8 (not a reformat)

- no Dropbox

- have Skype and use it sporadically, but mostly it's not running (i.e., completely Quit)

- four household users, so four users normally logged in all the time, a modest number of applications launched per user (3 to 7)

- we do not set our computer to go fully to sleep; only its display sleeps

- Time Machine backs up hourly onto a FireWire-attached drive


Amusingly, I did the same troubleshooting steps a lot of y'all did once Chrome and Safari surfing didn't work: ping, dig, traceroute, curl. All programs that wanted a TCP socket get "Can't assign requested address", including lots of things going back a few hours in my (now-gzip'ed) system.log.0. After ifconfig down/up didn't work, the only thing I could think of was to reboot, and afterward everything is working fine, and of course then I found this discussion. daily.out shows...


Local system status:

13:37 up 20 days, 13:19, 6 users, load averages: 2.82 3.10 3.29


...so if it had been up for 20d13h at 1:37pm this afternoon, and it died around 8pm, then I guess it had been up for about 20 days and 18 hours when it started failing. Like user "heavyboots", I also can see some Chrome messages about sandbox denies in the system log just before the problem; maybe this is a coincidence. I did not know that I was supposed to take a look at the netstat listing before restarting, so I don't have any counts of sockets or states or what they were connected to.


Fascinating problem. Annoying, but at least it doesn't cause me any data loss and at least it doesn't happen for many days. Apple, I hope you're listening and can find the cause of this. Chime in if you want any details we haven't provided.



-- JeffS

Jan 22, 2014 1:17 AM in response to gary.liddle

No, this does not work for me.... In my case it is en3 because I am connected via the thunderbolt display.

Connecting the ethernet cable to the ethernet port on my mac mini itself (en0) does not solve the problem either.


Henk


gary.liddle wrote:


http://nslog.com/2013/12/14/lost_internet_connection

suggests that:-

sudo ifconfig en0 down

sudo route flush

sudo ifconfig en0 up

has brought the network back to life, after seeing this problem.


Be interested if this works for anyone.

Jan 22, 2014 4:12 AM in response to gary.liddle

I believe this did work for me. This is obviously very exciting, and while it's not a fix and this is still an unbelievable bug, it allows me to keep working without rebooting.


hvdm, are you sure the Ethernet port is en0? Run ifconfig on the command line and figure out which interface currently is assigned an IP and is using your router, and try this fix on that.

Jan 22, 2014 6:54 AM in response to parsifal_

yes, this is exactly what I did. In case ethernet was connected to my display, en3 is used and I did "ifconfig en3 down" etc. And in case ethernat was connected to the mini directly, I used en0.


hvdm, are you sure the Ethernet port is en0? Run ifconfig on the command line and figure out which interface currently is assigned an IP and is using your router, and try this fix on that.

My network connection completely died - "failed: 49 - Can't assign requested address"

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