From: Michal Suchanek Date: 2006-09-06T21:50:18+09:00 Subject: Re: Total newbie, but I think I found a bug in Socket? On 9/6/06, Arnaud Bergeron wrote: > The problem is that it is paking an IPV6 adress for in the struct. > Using a litteral '127.0.0.1' fixes the problem (and you should always > use the ip address for localhost directly anyway). > > Why does this happens only on OS X? Having not seen the linux box you > tried this on, I can only guess. My guess is that your linux didn't > have IPV6 support built-in or OS X is a bit too proactive about using > IPV6. > > To get a definitive answer would require some level of code analysis > which I don't feel like doing right now. If you want to, look at the > socket.c file in the ruby source distribution. > I would add this is not ruby specific, ssh did this to me on OS X as well. I was not able to get port forwarding unless I specified 127.0.0.1 instead of localhost. Not sure what version of OS X it was, though. Thanks Michal