Indirizzo IP

come posso ricavare l’indirizzo IP della macchina sulla quale sta
girando il mio script ruby?

On 9/17/07, Simone [email protected] wrote:

come posso ricavare l’indirizzo IP della macchina sulla quale sta
girando il mio script ruby?

IPSocket.getaddress(Socket.gethostname)

Ciao,

http://antoniocangiano.com - Zen and the Art of Ruby P.ming
http://math-blog.com - Math Blog: Mathematics is wonderful!
My Photos: http://flickr.com/photos/acangiano

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs