3

I can't ping localhost/127.0.0.1 in my terminal.

I have disabled firewall but still not working.

$ ping localhost
PING localhost (127.0.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3

$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4

$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

What could block the ping of localhost?

enter image description here

2
  • Works on my machine. Looks like you need to provide more detail on what you have changed from your original installation. Commented Feb 18, 2022 at 12:01
  • Do you have installed a VPN? Commented Jul 6, 2022 at 21:14

0

You must log in to answer this question.

Browse other questions tagged .