This is one of the reasons why I appreciate the geekiness of Cloudflare with their DNS service IP addresses, particularly:
1.1 which to me is the shortest useful IP address I am aware of.
1.1 which to me is the shortest useful IP address I am aware of.
1: https://unix.stackexchange.com/questions/99336/how-does-ping...
But do a "strace -econnect nc 0 22" and you'll see that yes, actually, a connect() syscall to "0.0.0.0" does connect to localhost.
if (!fl4->daddr) {
fl4->daddr = fl4->saddr;
if (!fl4->daddr)
fl4->daddr = fl4->saddr = htonl(INADDR_LOOPBACK);
...