nio channels with IPv6 on Windows XP

Salter, Thomas A Thomas.Salter at unisys.com
Wed Dec 16 13:07:33 PST 2009


I've probably strayed way off topic for this mailing list by now, but will DualStack IPv6 implementation be back-ported to Java 6 or will it always run with two stacks on Vista and Windows 7?


-----Original Message-----
From: Alan.Bateman at Sun.COM [mailto:Alan.Bateman at Sun.COM]
Sent: Monday, December 14, 2009 3:48 AM
To: Salter, Thomas A
Cc: nio-dev at openjdk.java.net
Subject: Re: nio channels with IPv6 on Windows XP

Salter, Thomas A wrote:
> It seems that AsynchronousServerSocketChannel does not work with IPv6
> sockets on Windows XP (the combination that invokes the TwoStack
> implementations).  Is this a known restriction or is it intended to
> work?  I can certainly understand why you might not want to support it.
>
> I tested on b77.  My test runs on Windows 7 but fails on Windows XP.
> It fails on the bind because an IPv6 address is passed to AF_INET socket.
>
As Chris said, you need Vista or newer because that's the first release
of Windows with the new stack that supports dual-stack sockets (ie:
interoperability with IPv4 and support for IPv4-mapped IPv6 addresses).
The IPv6 stack that came in one of the Windows XP service packs was a
separate stack and lacks IPv4 interoperability.

-Alan.


More information about the nio-dev mailing list