Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jul 2026 21:45:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 282251] java/openjdk22: IPv6 / INET6 is broken
Message-ID:  <bug-282251-8522-tUq0r5jKOV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-282251-8522@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282251

--- Comment #11 from Patrick Mackinlay <freebsd.68fba@nospam.spacesurfer.com> ---
On openjdk25 (current stable java), the code at the top works whatever the
net.inet6.ip6.v6only sysctl is set to.
But, with -Djava.net.preferIPv4Stack=true the code fails with "Failed to
connect to localhost with INET6"
The code works if you dont define java.net.preferIPv4Stack or set it to false.
I think it should work regardless of what you set the value to, it does in
linux. However, the current state is better than what it was in openjdk17. So I
think you can close this issue.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-282251-8522-tUq0r5jKOV>