jump to navigation

Debian Java Socket Problems and IPV6 January 7, 2010

Posted by maxmil in : Uncategorized , add a comment

After my last system update all java code that attempted to connect to remote sockets started failing. Having tried everything, including pulling my hair out, i finally found the solution here

There are two solutions

1) Set bindv6only to 0
sudo sysctl net.ipv6.bindv6only=0
2) Everywhere you start a virtual machine (tomcat, eclipse, maven etc) pass a vm parameter
-Djava.net.preferIPv4Stack=true