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 and in this forum.

I understand it can be found from the HttpServletRequest class, but that is
too late.

I have a servlet context listener, but I cannot get the IP address from
there either.

I would appreciate any help or ideas on this. Thanks.

- Tosh

Reply via email to