eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
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:   
For additional commands, e-mail: 




Re: eth0 ip, not lo ip

2002-11-16 Thread Torsten Fohrer

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:  
>  For additional
> commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
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:  
> >
> 
> For additional
> > commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: eth0 ip, not lo ip

2002-11-16 Thread Pae Choi
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 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 <[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]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: eth0 ip, not lo ip

2002-11-16 Thread RXZ JLo
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 <[EMAIL PROTECTED]> 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" <[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 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]>
> >
> 
> 
> --
> 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]>