-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Yuval,
On 2/21/2009 1:44 PM, Yuval Perlov wrote:
> Also, from the socket object you can always call
> socket.getLocalAddress() on an outgoing connection. This is useful if
> you want to make sure you are getting the IP for a particular network.
Aren'
"Natalie Forood" wrote in message
news:206003.52131...@web35302.mail.mud.yahoo.com...
> Hello,
>
> Can you tell me how I can get the IP address of the interface that is
> running Tomcat? I can't use localhost, I need the IP of the physical
> interface.
>
request.getLocalAddr() returns the IP
You are right, should have been: request.getLocalAddr() - my bad.
Also, from the socket object you can always call
socket.getLocalAddress() on an outgoing connection. This is useful if
you want to make sure you are getting the IP for a particular network.
Yuval
On Feb 21, 2009, at 7:57 PM,
Yuval, wouldn't that give you the client's address? I thought she wanted the
server's ip address, with the added wrinkle that her server has multiple
network interfaces.
Yuval Perlov wrote:
request.getRemoteAddr();
You can only get your actual IP after opening a connection. Of course it
ca
Thanks so much to all who replied; I will try all your suggestions and report
back with what worked best in our setup.
Natalie
From: Yuval Perlov
To: Tomcat Users List
Sent: Friday, February 20, 2009 11:54:17 PM
Subject: Re: Getting the tomcat server IP
request.getRemoteAddr();
You can only get your actual IP after opening a connection. Of course
it can change depending on where the connection is coming from.
Alternatively you can open a connection to a known public server, and
figure out your IP using the resulting socket. If you are goin
to you from the ifconfig output?
Natalie
From: Steve
To: Tomcat Users List
Sent: Thursday, February 19, 2009 4:36:43 PM
Subject: Re: Getting the tomcat server IP
Natalie Forood wrote:
Hello,
Can you tell me how I can get the IP address of the interface
> From: Natalie Forood [mailto:nfor...@yahoo.com]
> Subject: Re: Getting the tomcat server IP
>
> After it is running we want to find out the IP address that
> Tomcat is using. If the server has multiple Ethernet
> interfaces, we cannot determine which IP is the one that is
>
I believe that tomcat will (unless specified otherwise) bind to all available
ip addys
-Original Message-
From: Natalie Forood
Date: Thu, 19 Feb 2009 18:41:36
To: Tomcat Users List
Subject: Re: Getting the tomcat server IP
s again for your help!
*/Natalie
/*
*From:* "Caldarale, Charles R"
*To:* Tomcat Users List
*Sent:* Thursday, February 19, 2009 6:22:15 PM
*Subject:* RE: Getting the tomcat server IP
> From: Natalie Forood [mailto:nfor...@yahoo.com
<mailto:nfor...@yahoo.com>]
> Subject: Re: G
address.
Thanks again for your help!
Natalie
From: "Caldarale, Charles R"
To: Tomcat Users List
Sent: Thursday, February 19, 2009 6:22:15 PM
Subject: RE: Getting the tomcat server IP
> From: Natalie Forood [mailto:nfor...@yahoo.com]
> Subj
> From: Natalie Forood [mailto:nfor...@yahoo.com]
> Subject: Re: Getting the tomcat server IP
>
> Thanka, but if I have multiple interfaces on the server, how
> do I know which interface to you from the ifconfig output?
Not sure what you're asking for. Do you have a Tomcat th
Thanka, but if I have multiple interfaces on the server, how do I know which
interface to you from the ifconfig output?
Natalie
From: Steve
To: Tomcat Users List
Sent: Thursday, February 19, 2009 4:36:43 PM
Subject: Re: Getting the tomcat server IP
Natalie Forood wrote:
Hello,
Can you tell me how I can get the IP address of the interface that is running
Tomcat? I can't use localhost, I need the IP of the physical interface.
Thanks,
Natalie
ifconfig (linux/unix/mac osx)
ipconfig (windows cmd line)
--
eats the blues for breakfast,
do
Hello,
Can you tell me how I can get the IP address of the interface that is running
Tomcat? I can't use localhost, I need the IP of the physical interface.
Thanks,
Natalie
15 matches
Mail list logo