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
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
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
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
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:
> 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
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