From: Brian Candler Date: 2009-01-06T18:06:32+09:00 Subject: Re: To get IP addres of the machine Sijo Kg wrote: > Could you please tell the code to get the IPaddress of my machine Your machine may have multiple IP addresses, but assuming its hostname has been set up properly, the following may do the trick: require 'socket' ip = IPSocket.getaddress(Socket.gethostname) -- Posted via http://www.ruby-forum.com/.