Network stops working, with "Can't Assign Requested Address"

On OS X 10.9 (but no prior version), every now and then, I start getting strange network errors. I can still ping, but anything that requires actual content (like a web page) completely stops.

For example:

$ ping 80.68.93.197
PING 80.68.93.197 (80.68.93.197): 56 data bytes
64 bytes from 80.68.93.197: icmp_seq=0 ttl=46 time=175.291 ms
64 bytes from 80.68.93.197: icmp_seq=1 ttl=46 time=172.519 ms
^C
--- 80.68.93.197 ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 172.519/173.905/175.291/1.386 ms
$ curl http://dailyjs.com/
curl: (7) Failed to connect to 80.68.93.197: Can't assign requested address

It seems similar to this message thread, but I don't see an answer there.

I've tried deleting the ethernet interface and re-adding it, but that doesn't seem to help.

I've tried deleting the ethernet interface and turning on wifi, which shows the same symptoms.

A reboot might fix the problem, but it's rather intrusive. Any ideas?


Solution 1:

In my case there was only one host giving me this issue. sudo route delete example.com fixed it instantly, no reboot.

Solution 2:

A reboot was the only thing that corrected the problem for me. :(