if you use jdk 1.4 and above, look at java.net.NetworkInterface:
NetworkInterface.getByName( "eth0" ); should do it, if i read the docu rights, that's it. Torsten Fohrer On Saturday 16 November 2002 10:54, RXZ JLo wrote: > Hi > > InetAddress.getLocalHost().getHostAddress() > > this is returning the lo interface's ip(127...), > i want the eth0 interface's ip. > > Where and what configuration should I change for this? > > Thanks, > Rf. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> For additional > commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
