Lost Internet Connection
Posted December 14th, 2013 @ 11:08am by Erik J. Barzeski
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 17.172.224.47: 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.
Posted 16 Dec 2013 at 4:53pm #
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.