Actually I am getting the eth0 IP on some machines, and not on some others. I am not sure why this is happening, though. May be, I thought, its a configuration issue.
And no, I can not use jdk1.4. thanks. --- Torsten Fohrer <[EMAIL PROTECTED]> wrote: > > 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]> > __________________________________________________ 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]>