On 12/06/10 12:02, S.P.Zeidler wrote:
> Hi,
> 
> Thus wrote Christos Zoulas (chris...@zoulas.com):
>> On Dec 6,  8:26am, gle...@eyesbeyond.com (Greg Lewis) wrote:
>> -- Subject: Re: problem when allocating port with openjdk6
>>
>> | Try adding '-Djava.net.preferIPv4Stack=true' to the args that are passed
>> | to the JVM on start up.
>>
>> Yes, java seems to prefer to use IPv6 mapped addresses for IPv4.
> 
> Has someone already bothered to find out why it doesn't work using v6?

For security the BSD's and other operating systems don't allow
IPv4-mapped IPv6 addresses by default:

http://tools.ietf.org/html/draft-itojun-v6ops-v4mapped-harmful-02

The most secure solution is to use one socket for IPv4 and another
for IPv6 like the Windows implementation in the JDK does. No one has
taken the time to implement that solution for bsd-port or its predecessors.

Regards,
-Kurt

Reply via email to