How to get Tomcat IP address during app startup?

2010-09-17 Thread Paritosh Patel
My web application needs to know the server IP/Port address during its initialization. How can I determine that? (I was trying to stay server agnostic as much as possible... if that is not possible, then I will write specific code for Tomcat. I have searched everywhere for this answer on the web

Re: How to get Tomcat IP address during app startup?

2010-09-17 Thread Pid
On 17/09/2010 15:15, Paritosh Patel wrote: My web application needs to know the server IP/Port address during its initialization. How can I determine that? (I was trying to stay server agnostic as much as possible... if that is not possible, then I will write specific code for Tomcat. I

RE: How to get Tomcat IP address during app startup?

2010-09-17 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: How to get Tomcat IP address during app startup? Tomcat listens on whichever IP address is configured in your connector. If you don't specify an IP address, then it listens on 0.0.0.0. The point I'm making is that Tomcat might not know