3 ms·
0.0.0.0 is a better target than localhost, because it means the connection fails immediately rather than possibly timing out, and it won't accidentally succeed
by TazeTSchnitzel 9y ago
0.0.0.0 is a better target than localhost, because it means the connection fails immediately rather than possibly timing out, and it won't accidentally succeed if you're running a local server.
The IPv6 variant (two colons, ::) is shorter still.