Search code examples
linuxmacoslocalhost

Localhost Can't assign requested address


I use MacOS 10.14.6 and few days ago I faced with a problem on my computer with localhost. Rubymine can't connect to database with an error "java.net.NoRouteToHostException: Can't assign requested address (Address not available).". Also when I run puma server on 0.0.0.0:3000, browser can't open page on this address, and when I run server on 127.0.0.1:3000, browser can't open page on this address too, but can open on localhost:3000. I ran ping and got this output:

PING 127.0.0.1 (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
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 2
ping: sendto: Can't assign requested address
Request timeout for icmp_seq 3
^C
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss```

Solution

  • WARP was the cause of the problem. Issue started after disabling the app. Disabling and reboot or enabling the app resolved the issue.