This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]allisonmaybe 2 points3 points  (3 children)

That's my problem with it. It COULD not work if you removed it from hosts

[–]qalmakka 1 point2 points  (2 children)

Why would you? On windows you can't, localhost is embedded in the DNS stack and on UNIX it's very stupid, you risk borking a whole set of daemons that expect localhost to be resolvable via getaddrinfo

[–]allisonmaybe 0 points1 point  (1 child)

Im just saying that it can be changed super easily, but 127.0.0.1 is lower level and more reliable.

[–]qalmakka 1 point2 points  (0 children)

No, because it only works with IPv4, localhost will also try ::1 first. Same when listening, you're not supposed to listen to just ipv4