From: Francis Cianfrocca Date: 2006-09-06T12:27:32+09:00 Subject: Re: Total newbie, but I think I found a bug in Socket? On 9/5/06, Patrick Toomey wrote: > now, after running this script on both ruby 1.8.4 and 1.8.5 on Mac OS > X I received an error "`bind': Invalid argument - bind(2) > (Errno::EINVAL) " I proceed to run the script on linux on 1.8.4 > and 1.8.5 and discover that bind works, but that > "socket.readline.chomp" should really be "client.readline.chomp". Try it with "127.0.0.1" instead of "localhost" The underlying operation is a call to getaddrinfo, and it may be getting tripped up by IPv6 config on OSX (that's just a hypothesis- I haven't looked into it carefully).