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