Cloudflare warp de-routes 127.0.0.1 How to return it?
I'm a web dev and pretty regularly use localhost/127.0.0.1 As you do. The problem is recently I started getting a problem where Cloudflares warp (Its a privacy VPN of sort, with caveats) causes 127.0.01 to stop responding. Even pinging doesn't work.
ping localhost PING localhost (127.0.0.1): 56 data bytes ping: sendto: Can't assign requested address ping: sendto: Can't assign requested address Request timeout for icmp_seq 0 ping: sendto: Can't assign requested address Request timeout for icmp_seq 1 xping: sendto: Can't assign requested address Request timeout for icmp_seq 2 ping: sendto: Can't assign requested address
I've tried the route -n flush thing , thinking that maybe its done something hokey to the routing table but even with multiple consecutive runs of it (as is oft suggested) it just doesnt work, and ends up making the internet flakey.
I'm at a loss. It appears to be a common problem too, I asked on reddit and with no answer there where a lot of "me toos" all noting their problems starting around the same time mine started. No answers given.
The only fix is usually to resetart the machine, which is an ugly solution when you have a nest of docker containers and other things that dont like to simply shut down.
Anyone encountered this and have a possible soluton?
edit: For folks in a hurry, the solution from the comments is
sudo ifconfig lo0 -alias 192.0.2.2
See the accepted answer for a breakdown of why this works.