Using ifconfig as information source makes you dependent on the platform. Probably the gurus will come up with an easier way, but how about opening up a socket with a default address and reading the IP address out of that?
Using ifconfig as information source makes you dependent on the platform. Probably the gurus will come up with an easier way, but how about opening up a socket with a default address and reading the IP address out of that?
kpmsivachand (21st February 2009)
Bookmarks