2009-12-12

broken java networking

If your Java networking is broken and any traffic always
results in a "java.net.SocketException: Network is unreachable" error, then here comes a quick fix:

  1. edit /etc/sysctl.d/bindv6only.conf
  2. change value net.ipv6.bindv6only=1 into 0
  3. invoke-rc.d procps restart

11 comments:

  1. Thanks for posting this.
    I received the error when using moneydance (running debian squeeze), followed your advice and all is now well. Thanks again.

    ReplyDelete
  2. I had same problem, when I updated my debian. Some update changed my /etc/sysctl.d/bindv6only.conf and set 1. I wasn't able to to start my application server like tomcat or jetty. Thanks.

    ReplyDelete
  3. Thanks very much.

    I use debian. My bibliography manager (JabRef) was no longer able to connect to remote bibliographic databases (pubmed etc.).

    This bugfix worked for me.

    ReplyDelete
  4. 愛,拆開來是心和受兩個字。用心去接受對方的一切,用心去愛對方的所有。.........................

    ReplyDelete
  5. Hello. Many thanks for this tip - I would never find it alone. I event don't try to ask why did they do it? :) I start to fear another dist-upgrade, but it's always hard time when I upgrade debian every year..

    Regards

    ReplyDelete
  6. thank you very much for posting this :-)

    ReplyDelete
  7. Woohoo! This was the problem! Thank you :)

    ReplyDelete
  8. Great !
    I wasn't able to use Device Manager (network administration) and Spark (Enterprise Instant Messaging).
    It works for me !

    ReplyDelete
  9. For me too, my Jabref on Debian , option "Fetch on Medline" fix this too !!

    ReplyDelete
  10. Thank you. I had no idea it had to do with Debian and ipv6. I was trying to figure out some issue with Red5 configuration. Thanks much!

    ReplyDelete
  11. Could you please tell the equivalent setting for Windows?

    ReplyDelete