[Bug 282251] java/openjdk22: IPv6 / INET6 is broken

[email protected] Mon, 06 Jul 2026 14:38:43 +0000
Newsgroups gmane.os.freebsd.devel.java
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282251

Harald Eilertsen <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #10 from Harald Eilertsen <[email protected]> ---
(In reply to Bjoern A. Zeeb from comment #9)
> I am not sure what the expected status quo in java should be today: v4map=
ped v6 sockets still?

OpenJDK opens an IPv4 (only) socket if you bind to an IPv4 address, and a I=
Pv6
(only) socket if you bind to an IPv6 address. If you bind to the wildcard
address (either '0.0.0.0' or '::') it will open an socket accepting both IP=
v4
and IPv6 traffic.

From what I understand, the FreeBSD sysctl net.inet6.ip6.v6only determines =
if
IPv4 mapped addresses are accepted or not. By default they are not, and
enforced by the OS.

Not sure if that answers your questions, or if there's something I missed.

(And also, this bug should probably be closed, as the original problem is
fixed, and JDK 22 is EOL and removed in any case.)

--=20
You are receiving this mail because:
You are the assignee for the bug.=