Aaron wrote:
On 11/14/06, Lennon Day-Reynolds <[EMAIL PROTECTED]> wrote:
This is hackish in the extreme, but it's what comes to mind at the
moment:
Socket.getaddrinfo(Socket.gethostname, 'www').map {|ainfo| ainfo[3]
}.uniq
I tried this and only lo, 127.0.0.1 is returned. Even though en0 has
another IP address. I would be ok with this if it returned more than
localhost. Does it work differently for you? There is not DNS
resolution on the target machine. I wonder if that has anything to do
with it.
Try using the fully qualified domain name. The hostname
(non-qualified) is often assigned to loopback so that services work
without ethernet being up. /etc/hosts would know for sure.
-=j
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby