You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by RXZ JLo <ru...@yahoo.com> on 2002/11/16 10:54:50 UTC
eth0 ip, not lo ip
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: eth0 ip, not lo ip
Posted by RXZ JLo <ru...@yahoo.com>.
because I do not want to say my software strictly
requires 1.4 or higher :)
Again, any suggestions for the eth0 ip, any changes
in server.xml needed?
-rf
--- Pae Choi <pa...@earthlink.net> wrote:
> 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" <ru...@yahoo.com>
> To: "Tomcat Users List"
> <to...@jakarta.apache.org>;
> <tf...@t-online.de>
> 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 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 <TF...@t-online.de> 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:
> > > >
> > >
> <ma...@jakarta.apache.org>
> > > For additional
> > > > commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > >
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Web Hosting - Let the expert host your site
> > http://webhosting.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: eth0 ip, not lo ip
Posted by Pae Choi <pa...@earthlink.net>.
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" <ru...@yahoo.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>;
<tf...@t-online.de>
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 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 <TF...@t-online.de> 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:
> > >
> > <ma...@jakarta.apache.org>
> > For additional
> > > commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Web Hosting - Let the expert host your site
> http://webhosting.yahoo.com
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: eth0 ip, not lo ip
Posted by RXZ JLo <ru...@yahoo.com>.
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 <TF...@t-online.de> 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:
> >
> <ma...@jakarta.apache.org>
> For additional
> > commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: eth0 ip, not lo ip
Posted by Torsten Fohrer <TF...@t-online.de>.
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:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>