News for hackers. Stuff that matters.
Re:IPv6 Is Hard by o11c on Sunday February 16, 2025 @10:21PM (#43074718)
One major annoyance of IPv6 is that it lacks support for IPv4's whole 127.0.0.1/8 range.
Re:IPv6 Is Hard by boredatoms on Sunday February 16, 2025 @10:47PM (#43074920)
What are the use cases for it beyond the regular .1 address that you dont get from ::1?
Re:IPv6 Is Hard by o11c on Sunday February 16, 2025 @10:55PM (#43074965)
It's very useful for cooperatively pretending that a single machine is actually a network of machines, without all the madness of network namespaces.

Basically every server program ever supports the notion of "which IP address am I supposed to bind to?" Normally the answer is either "localhost" or "whatever my LAN or WAN address is, for a particular interface". And specifying this (both for servers and for clients) is much less effort than replacing all the standard-ish ports with ad-hoc ones.

Re:IPv6 Is Hard by akdev1l on Sunday February 16, 2025 @11:40PM (#43075214)
You can literally do the same thing with IPv6.

Just assign multiple IPv6 to your loopback interface and everything will work as expected. You can use either private IPv6 or even link-local IPv6 range.

There’s no need to waste thousands of addresss on this use case.

Re:IPv6 Is Hard by o11c on Sunday February 16, 2025 @11:56PM (#43075303)
Which is configuration that's requires arcane invocations and permissions I might not have.

As opposed to IPv4, where everything Just Works™.

Re:IPv6 Is Hard by eqvinox on Monday February 17, 2025 @04:15AM (#43076824)
…until it doesn't, when something looks at the configured addresses. The "other" addresses in 127.0/8 will easily have weird behavior in nontrivial setups.
Re:IPv6 Is Hard by Siyo on Monday February 17, 2025 @04:34AM (#43076944)
I wish that were true. MacOS for example only assigns 127.0.0.1/32. You have to assign extra IPs manually, the same way you would on IPv6.
Re:IPv6 Is Hard by procaryote on Monday February 17, 2025 @05:01AM (#43077116)
that is a mac problem, not an ipv4 problem. The mac does a lot of pretty stupid things
Re:IPv6 Is Hard by selfhoster on Monday February 17, 2025 @10:24AM (#43079901)
As someone who used Windows and Linux my whole career and now am forced to use Mac for a new job; I completely agree, I was right, Mac is a very weird thing overall.
Re:IPv6 Is Hard by Siyo on Monday February 17, 2025 @03:19PM (#43082936)
Same thing on FreeBSD. It's just not something you can rely on and the spec doesn't say it needs to be assigned.
Re:IPv6 Is Hard by paulddraper on Monday February 17, 2025 @04:02PM (#43083271)
Yeah, and I always do.

Because parent is right, having multiple loopback addresses is just so nice for a lot of things.

Re:IPv6 Is Hard by paulddraper on Sunday February 16, 2025 @11:44PM (#43075241)
> waste thousands

Yeah would hate to run out

Re:IPv6 Is Hard by Spivak on Sunday February 16, 2025 @11:33PM (#43075175)
I love this feature so much when jumping back and forth between two projects that when devving expect exclusive control of postgres. All I have to do is set the bind address for one .1 and the other .2 and all is good.
Re:IPv6 Is Hard by lostmsu on Monday February 17, 2025 @12:43AM (#43075585)
I was counting on that just a few days ago and failed spectacularly when Windows SMB client refused to connect to 127.0.0.2