Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Having 2 sockets for loopback or multiple interfaces is a huge pain


Bind to '::' and you can get v4 and v6 traffic on one socket.


Not on all OSes. And it's not all good to have one less socket, there are still issues with people not expecting v4 traffic on a v6-capable socket, like described here:

https://radar.offseq.com/threat/ipv4-mapped-ipv6-addresses-t...

If you want to handle two protocols, it is not unreasonable to use two sockets.


Doesn’t work for loopback (you have to listen externally )


It works fine for me on NixOS (Linux), with a recent kernel version and no weird config options - or at least I think so.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: