Java and IPv6 on BSD - it does not work well

Frank Behrens frank at harz.behrens.de
Wed Oct 15 05:43:24 UTC 2008


Norberto Meijome <numardbsd at gmail.com> wrote on 15 Oct 2008 13:54:
> "Frank Behrens" <frank at harz.behrens.de> wrote:
> 
> > You can read the complete test description and my observations on
> > http://diario.behrens.de/2008/10/12/java_and_ipv6_on_bsd.html
> 
> I cannot resolve the FQDN

Really? I had enough page requests to be sure it works.

> I have ipv6 enabled, but not configured. Any of my java programs that uses

May be that's also the reason for your problem with the above 
mentioned website. It will resolve to an IPv6 address, too. :-)

> network will fail unless i force it to use IPV4 with -Djava.net.preferIPv4Stack=true
> ( I actually have that in my default shell : 
> JAVAVM_OPTS_javaws=-J-Djava.net.preferIPv4Stack=true
> JAVAVM_OPTS_java=-Djava.net.preferIPv4Stack=true

Yes, this is an easy solvable problem, if you want to use IPv4 only. 
But if you want to use IPv4 and IPv6 in parallel you will get more 
problems. Try to read the complete report...

Regards,
   Frank

-- 
Frank Behrens, Osterwieck, Germany
PGP-key 0x5B7C47ED on public servers available.



More information about the freebsd-java mailing list