Ruby - Platform independent way to determine IPs of all network interfaces?
Posted
by Tindron
on Stack Overflow
See other posts from Stack Overflow
or by Tindron
Published on 2010-03-16T04:10:13Z
Indexed on
2010/03/16
8:36 UTC
Read the original article
Hit count: 336
Is there an easy way in Ruby for me to get a list of the IP addresses for all network interfaces? It needs to work in Linux/Win/OSX and I'd prefer to not have to parse ifconfig/ipconfig unless I absolutely have to.
© Stack Overflow or respective owner