piir / earthlink.net (Todd Gardner) writes:

> Hello Everyone,
> 
> Is there a cross platform command to get the same info that ipconfig
> [w2k] or ifconfig[POSIX] returns directly in Ruby?
> 
> Thanks,
> 
> Todd

Nope, not really, I don't think.  If you want to figure out the address
of the interface closest to the Internet, as far as I know the most
portable way is to open a socket to a machine elsewhere on the Internet
and look at which source address the operating system chose.

  mikael