From: djberg96@... (Daniel Berger) Date: 2003-07-13T06:25:30+09:00 Subject: Re: Getting my IP address ts wrote in message news:<200307121340.h6CDeV804312@moulon.inra.fr>... > >>>>> "E" == Eric Schwartz writes: > > E> How can I get, through Ruby, the IP addresses bound to each of the > E> interfaces on this computer? > > You write an extension and you just hope that it work :-))) > > svg% ruby -ripo -e 'p IPSocket.names' > [["lo", "127.0.0.1"], ["eth0", "138.102.114.196"]] > svg% > > > Guy Decoux I tried with sys-host. I don't think I got it right, though. Shall I submit an RCR? Or does your code snippet mean that you've already got some code to commit Guy? Regards, Dan