From nobody Mon Jul 06 21:45:32 2026 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gvHwG6Wxqz6kGK5 for ; Mon, 06 Jul 2026 21:45:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gvHwG1Z12z430D for ; Mon, 06 Jul 2026 21:45:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783374334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mG6cXRo6fvHNKNK9Ur3jpD61QIkvQ7a/2ChxitLxOBA=; b=ED3/sjtqftmpiz38aE7/fj6ppTanhuPWJ79ccuUPRVZR9+w5dEyCZ4Hr3OH+nXqFgSIjsr y7rwGaSbec3dvypY7YXkRAZ3VWwOLCJkI6Tmz7SYyb9Zj7QJTIolvAhn7lt3TahKI5uZ5n JG2Q+SzM7CRcOpIXFpL5MkvEt3a9FFgR/TEPX5BPGgIO/2Do6en/v8D1eKLmgjLNW/2L5p Ubj5eAy7tdlCwFaedV/t2Y6wsWRZVjW9u0cwX11yJ1pOoZbmoLxyK2u8V+7yeqkVIrDek3 jjyyhT+sPnMB0YEosgTcQMe/ZsQ/wniF4AedC8DChEzDxDI4KW/Mv1IUOZm66Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1783374334; a=rsa-sha256; cv=none; b=i02bXVQAgDyuKC+BIRFG++Yddqn3jCi9dAZS0HAuDmMdhoLOKmY/VncfwsqugpXa5/XuCE Z84jWxU8z2yCvNO+4eQ1cM1+HfBMyMI/JsnRRn1JIinQcWYs9052i8XZfUUZKN5g/b8D1g 4LlKibD6YvfGzhEPC0KakIi2fNvw2xkDnuvJSUYxZw2/o+YYkNQcQjTs4cUlXazazILU+9 F8o5oeyLw12SuCCEYa+A/BZRA7agExMOXjEkFuGdVD8AexhA42fthsYF0o3by+JYTbJRJD +nwEutHKwacC8IcDbZW87owC0TzdA5gqrPl+5gOC0NUnPdW6JCLX9AXOp24DUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1783374334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mG6cXRo6fvHNKNK9Ur3jpD61QIkvQ7a/2ChxitLxOBA=; b=sM9pdqjW1GyLXFqrZFc0CJdeLPNPPj/U/o4Kg4elh+Qy/2WQj122XXdmbkjOef1KYgs2rm feyfn+h2gitoRasMXntaVI3os72fCnwNp+AWspAePlMEqvdAOZd3SJJ3HVA5OWhCcIivnh rwMl8NMAex8pUpdv9C59F56cuemuz0fO1t+XtJSZMf+WZT2gU+Yo2nEAGzkA+XCdNI5u+5 Dkse/jm07LjapZD2aigMWVKJd2ND5LgBHhcUuo9G6N34iJoURgI+APJExPnLlZnqOwiCgs +CjCpxd9Zl0M91Myss76uFtgTY2ks/TpS9xh9f8APpOm30brCwfW3dwf8pVrLQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gvHwG0Lpvz1Kw3 for ; Mon, 06 Jul 2026 21:45:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 666LjX4s044158 for ; Mon, 6 Jul 2026 21:45:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 666LjXMa044157 for java@FreeBSD.org; Mon, 6 Jul 2026 21:45:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 282251] java/openjdk22: IPv6 / INET6 is broken Date: Mon, 06 Jul 2026 21:45:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd.68fba@nospam.spacesurfer.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282251 --- Comment #11 from Patrick Mackinlay --- 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=3Dtrue 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 fal= se. 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. --=20 You are receiving this mail because: You are the assignee for the bug.=