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
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
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
I am just curious why the JDK1.4.x is not an acceptable
choice? It should be backward compatible?
Pae
- Original Message -
From: RXZ JLo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, November 16, 2002 5:23 AM
Subject: Re: eth0 ip, not lo
?
Pae
- Original Message -
From: RXZ JLo [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, November 16, 2002 5:23 AM
Subject: Re: eth0 ip, not lo ip
Actually I am getting the eth0 IP on some
machines,
and not on some others. I