From: Akira Matsuda Date: 2010-12-22T12:09:30+09:00 Subject: [ruby-core:33813] [Ruby 1.8-Bug#3787] TCPSocket.new() fails on IPv6 connections for IPV4/IPv6 hosts Issue #3787 has been updated by Akira Matsuda. Oh, sorry. You're right. In my case, while I can connect to 1200 via v4, % ruby -d -v -rsocket -e "p TCPSocket.new('127.0.0.1', 1200)" ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10] # it fails to connect using v6. % ruby -d -rsocket -e "p TCPSocket.new('::1', 1200)" Exception `Errno::ECONNREFUSED' at -e:1 - Connection refused - connect(2) -e:1:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED) from -e:1:in `new' from -e:1 And I'm sure '::1' stands for localhost. % ruby -d -rsocket -e "p IPSocket.getaddress('localhost')" "::1" Should I post another ticket for this? ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3787 ---------------------------------------- http://redmine.ruby-lang.org