Subscribe to
NSLog(); Header Image

Lost Internet Connection

12/14/13 1:47:37.026 PM mDNSResponder[38]: mDNSPlatformTCPSocket: socket error 0 errno 49 (Can't assign requested address)
12/14/13 1:47:37.026 PM mDNSResponder[38]: MakeTCPConn: unable to create TCP socket

And in CURL:

curl: (7) Failed to connect to Can't assign requested address

Essentially all HTTP requests fail (pings still work).

The solution seems to be a variant of:

sudo ifconfig en0 down
sudo route flush
sudo ifconfig en0 up

Saves me from having to reboot, at least.

P.S. I have no idea what causes this issue. It's occurred twice in the last few months, though.

One Response to "Lost Internet Connection"

  1. Thank you!

    I’m going to have to save that and try it the next time this happens to me so I can avoid rebooting. It has happened on my iMac about once every two months since early summer.

    IPv6 never seems to get messed up and always works fine, but IPv4 is necessary for most things.