Results 1 to 2 of 2

Thread: Java adapters create IPv6 sockets even when IPv4 is disabled

  1. #1
    fmoya is offline Registered User
    Name: Francisco Moya
    Organization: UCLM
    Project: Debian packages
    Join Date
    Oct 2004
    Posts
    51

    Java adapters create IPv6 sockets even when IPv4 is disabled

    A simple "hello world" type application written in Java.

    Contents of config file:

    OA.Endpoints=tcp -p 9999
    Ice.IPv6=0
    $ netstat -tnl

    tcp6 0 0 :::9999 :::* LISTEN
    No tcp IPv4 socket? The same example in C++ binds only on a tcp IPv4 socket.

    The consequence is that IPv4 requests are not delivered unless net.ipv6.bindv6only is set to zero in /etc/sysctl.conf (on Linux). Alternatively one may always use -Djava.net.preferIPv4Stack=true.

    When IPv6 is not disabled the master socket is also bound to IPv6. But there is no IPv4 socket available for IPv4 clients.

    I didn't notice this behaviour before because previously Debian set net.ipv6.bindv6only to zero by default.

    Am I doing something wrong?
    Francisco Moya Fernandez
    Computer Architecture and Tecnology Group
    University of Castilla-La Mancha

    Debian Maintainer of ZeroC Ice packages.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Thanks for the bug report, we'll look into this.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Does ICE spport IPv6?
    By shenhongzhou in forum Help Center
    Replies: 1
    Last Post: 10-21-2009, 05:08 AM
  2. IPv6 and ssl
    By sober in forum Help Center
    Replies: 5
    Last Post: 04-15-2008, 11:48 AM
  3. Reuse sockets?
    By hotlips in forum Help Center
    Replies: 1
    Last Post: 09-05-2007, 06:42 AM
  4. Sockets parameters in ICE
    By gyarmit in forum Comments
    Replies: 2
    Last Post: 06-19-2007, 09:32 AM
  5. ICE for ipv6
    By utopiazh in forum Help Center
    Replies: 3
    Last Post: 06-02-2005, 08:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •