From: Yusuke ENDOH Date: 2010-04-23T01:58:45+09:00 Subject: [ruby-core:29730] Re: [Bug #3052] DRb::start_service fails to detect used port Hi, 2010/4/23 Chris Schlaeger : > I did some more tests and the problem is most likely not DRb specific. > I can reproduce this with TCPSocket as well. The system was an > openSUSE 11.1 and 11.2. Both have IPv6 enabled. The problem does not > occur when I use 127.0.0.1 instead of localhost. Does that help? > Should I do another test? This may be side effect of ipv6 support of ext/socket. What's printed by: require "socket" p TCPServer.new("localhost", 1234).addr p TCPServer.new("localhost", 1234).addr ? If the result is, for example: ["AF_INET6", 1234, "::1", "::1"] ["AF_INET", 1234, "127.0.0.1", "127.0.0.1"] , this is intended behavior. The first drb server is bound to ::1:1234, and the second is 127.0.0.1:1234. You will be able to access both servers to druby://[::1]:1234 and druby://127.0.0.1:1234, respectively. -- Yusuke Endoh