From: Zach Dennis Date: 2005-10-27T00:42:59+09:00 Subject: Re: Getting IP addresses Mark Van Holstyn wrote: > Does anyone know how to get an ip address from within ruby? I would like to > be able to grab both the ip of computer( the one assigned by my local > network ) and the ip to the outside world. Any help would be great. irb -r socket irb> Socket.getaddrinfo( Socket.gethostname, Socket::AF_INET ) => [["AF_INET", 2, "lima", "10.0.1.44", 2, 2, 17]] Zach