RE: how to obtain server ip address

2007-09-18 Thread Propes, Barry L
did you try getRemoteAddr()? -Original Message- From: Lilianne E. Blaze [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 12:08 AM To: Tomcat Users List Subject: Re: how to obtain server ip address Check java.net.NetworkInterface, it lets you enumerate all interfaces and

Re: how to obtain server ip address

2007-09-17 Thread Waseem Azhar
Yes I have tried InetAddress.getLocalHost() and its working ... Thanks, -Azhar On 9/18/07, Sonal Goyal <[EMAIL PROTECTED]> wrote: > > Waseem, > > Have you tried InetAddress.getLocalHost()? > > Sonal > > On 9/18/07, Waseem Azhar <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > How do I obtain the I

Re: how to obtain server ip address

2007-09-17 Thread Sonal Goyal
Waseem, Have you tried InetAddress.getLocalHost()? Sonal On 9/18/07, Waseem Azhar <[EMAIL PROTECTED]> wrote: > > Hi, > > How do I obtain the IP address of the machine (where the tomcat tomcat > server in running) ? My web app is deployed on tomcat server and I want to > know the Ip address of th

Re: how to obtain server ip address

2007-09-17 Thread Waseem Azhar
Yes I want to obtain IP address programmatically, Thanks for the quick help. -Azhar On 9/18/07, Lilianne E. Blaze <[EMAIL PROTECTED]> wrote: > > Check java.net.NetworkInterface, it lets you enumerate all interfaces > and addresses / interface. Discard loopback 127.0.0.1 and private > addresses

Re: how to obtain server ip address

2007-09-17 Thread Lilianne E. Blaze
Check java.net.NetworkInterface, it lets you enumerate all interfaces and addresses / interface. Discard loopback 127.0.0.1 and private addresses (see rfc 1918), with any luck there should be one address remaining. Of course, that is assuming your machine is directly exposed to the internet. http:

RE: how to obtain server ip address

2007-09-17 Thread Caldarale, Charles R
> From: Waseem Azhar [mailto:[EMAIL PROTECTED] > Subject: how to obtain server ip address > > How do I obtain the IP address of the machine (where the > tomcat tomcat server in running) ? If you mean you want to obtain the IP address programmatically, you should read the Serv

how to obtain server ip address

2007-09-17 Thread Waseem Azhar
Hi, How do I obtain the IP address of the machine (where the tomcat tomcat server in running) ? My web app is deployed on tomcat server and I want to know the Ip address of the server in my application. Thanks in advance. -Azhar