Re: Getting the tomcat server IP

2009-02-22 Thread Christopher Schultz
-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'

Re: Getting the tomcat server IP

2009-02-21 Thread Bill Barker
"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

Re: Getting the tomcat server IP

2009-02-21 Thread Yuval Perlov
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,

Re: Getting the tomcat server IP

2009-02-21 Thread Rusty Wright
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

Re: Getting the tomcat server IP

2009-02-21 Thread Natalie Forood
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

Re: Getting the tomcat server IP

2009-02-20 Thread Yuval Perlov
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

Re: Getting the tomcat server IP

2009-02-20 Thread Rusty Wright
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

RE: Getting the tomcat server IP

2009-02-19 Thread Caldarale, Charles R
> 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 >

Re: Getting the tomcat server IP

2009-02-19 Thread steve rieger
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

Re: Getting the tomcat server IP

2009-02-19 Thread Jordan Michaels
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

Re: Getting the tomcat server IP

2009-02-19 Thread Natalie Forood
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

RE: Getting the tomcat server IP

2009-02-19 Thread Caldarale, Charles R
> 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

Re: Getting the tomcat server IP

2009-02-19 Thread Natalie Forood
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

Re: Getting the tomcat server IP

2009-02-19 Thread Steve
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

Getting the tomcat server IP

2009-02-19 Thread Natalie Forood
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