4 ms·
If you ask me, 0.0.0.0 should not be interpreted as 127.0.0.1. Yes, I know programs like ping interpret it this way as well. I just think it's ridiculous.
by herpderperator 7y ago
If you ask me, 0.0.0.0 should not be interpreted as 127.0.0.1. Yes, I know programs like ping interpret it this way as well. I just think it's ridiculous.
- silverwind 7y agoAgree that the bug is in userspace. Unless there is a RFC that says "0.0.0.0 shall be interpreted as 127.0.0.1", it's just super-weird that it even does that.
- p_l 7y agoSo, some software actually parses 0/8 as localhost? This explains so many broken tutorials..
- IshKebab 7y agoThe main use is to control which interfaces servers listen on. I.e. can you access them from other machines.
- unilynx 7y agoIt makes sense if you compare it to how listening sockets work - if I listen on 127.0.0.1:80, I can connect to 127.0.0.1:80. if I listen to 0.0.0.0:80 (all ipv4 addresses), I can connect to 0.0.0.0:80 And as a bonus, I can just 'telnet 0 80' instead of having to type out 127.0.0.1