From: Eric Hodel Date: 2006-09-04T11:27:31+09:00 Subject: Re: getnameinfo: ai_family not supported (SocketError) On Sep 2, 2006, at 9:37 AM, A. S. Bradbury wrote: > On Saturday 02 September 2006 02:36, Eric Hodel wrote: >> Guessing from the last time I was playing around in create_listeners, >> but do your systems support IPv6? > > They do not, emergeing ruby with the ipv6 USE flag prevents this > error, though > seeing as my system has no ipv6 support in any other packages, or > the kernel > this doesn't seem like a sensible thing to do. Am I likely to see > anything > break? I don't know. Can you try: require 'socket' p Socket.getaddrinfo(nil, 80, Socket::AF_UNSPEC, Socket::SOCK_STREAM, 0, Socket::AI_PASSIVE) On an IPv6 capable machine I get: [["AF_INET6", 80, "::", "::", 30, 1, 6], ["AF_INET", 80, "0.0.0.0", "0.0.0.0", 2, 1, 6]] and on an IPv4 only machine I get: [["AF_INET", 80, "0.0.0.0", "0.0.0.0", 2, 1, 6]] -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com