problem when allocating port with openjdk6
kurt at intricatesoftware.com
Thu Dec 9 11:17:51 PST 2010
On 12/06/10 12:02, S.P.Zeidler wrote:
> Thus wrote Christos Zoulas (christos at zoulas.com):
>> On Dec 6, 8:26am, glewis at 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:
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.
More information about the bsd-port-dev