Hacker News new | ask | show | jobs
by pishpash 3008 days ago
0.0.0.0 is not localhost. It's "any address".
1 comments

Yes, 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.