3 ms·
0.0.0.0 is not localhost. It's "any address".
by pishpash 9y ago
0.0.0.0 is not localhost. It's "any address".
- aexaey 9y agoYes, you're right. What I was trying to say is - On Linux, INADDR_ANY (0.0.0.0) supplied to connect() or sendto() calls is treated as a synonym for INADDR_LOOPBACK (127.0.0.1) address. Not so for bind() or course.