From: Tom Sawyer Date: 2002-09-09T19:11:57+09:00 Subject: Re: getting the IP address of the local machine thanks! On Mon, 2002-09-09 at 04:05, WATANABE Hirofumi wrote: > Hi, > > Tom Sawyer writes: > > > > does anyone know how to get the IP address of the machine a ruby script > > is running on? > > require 'socket' > ip_address = IPSocket.getaddress(Socket.gethostname) > > -- > eban > -- tom sawyer, aka transami transami@transami.net