From: Garance A Drosehn Date: 2006-10-30T11:28:55+09:00 Subject: Re: ipv6 connection attempted before ipv4 On 10/29/06, snacktime wrote: > On 10/29/06, snacktime wrote: > > I've noticed that when using net/http, and probably with any ip/udp > > socket connection, it attempts to connect via ipv6 and when that fails > > it falls back to ipv4. Is this due to the underlying socket library > > on freebsd, or is it a ruby issue? > > Forgot to mention this was when using 'localhost' instead of > 127.0.0.1. For anyone else testing clients/servers on freebsd, don't > use 'localhost', use 127.0.0.1. It has to do with the order of 'localhost' lines in the /etc/hosts file. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA