3 ms·
i was always under the impression that 127.0.0.1 is what you should use
by hayksaakian 12y ago
i was always under the impression that 127.0.0.1 is what you should use
- lotyrin 12y agoThat would account for the case where my local machine doesn't have a host entry for "localhost" but would break if I don't have an IPV4 loopback (if, say, I only have a IPV6 one). Both of those are pretty odd cases, so I'm not sure how much they're worth worrying about.
- eropple 12y agoI could be wrong, because networking is Not My Thing At All, Oh God, Make The Pain Stop, Why Does The Routing Table Have Bees In It, but shouldn't 127.0.0.0/8 be able to find the IPv6 loopback if the IPv4 one does not exist? Or am I misunderstanding yet another part of networking?
- lotyrin 12y agoNope, perfectly possible to not have an IPV4 address. $ sudo ifconfig lo 0 $ ifconfig lo lo Link encap:Local Loopback inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING [... the rest omitted for brevity] $ ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. ^C --- 127.0.0.1 ping statistics --- 32 packets transmitted, 0 received, 100% packet loss
- eropple 12y agoInteresting. I guess I assumed it'd tack a bunch of zeroes on the front and try it as an IPv6 address. Thanks!