If it's a *nix server you could do a "netstat" and see what's listening
to port 8080...
Here's an example line from running the following command:
> netstat -ltpn
tcp 0 0 :::8080 :::*
LISTEN 598/java
... which indicates that tomcat is listening to all IP's.
HTH
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider
Natalie Forood wrote:
Sorry for not being clear.
We install Tomcat along with our product on a Linux server. 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 used by Tomcat. For example, when I use a different
web server, it will give me a list of all interfaces that are on the
server and tell me the one that it is currently using (see attachment).
I am hoping that some Tomcat conf file has this or some command that I
can run from within our Java application can give me this IP address.
Thanks again for your help!
*/Natalie
/*
------------------------------------------------------------------------
*From:* "Caldarale, Charles R" <chuck.caldar...@unisys.com>
*To:* Tomcat Users List <users@tomcat.apache.org>
*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: 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 that's already
running, and you want to know which IP addresses it's using, or do you
want to know how to configure Tomcat to use a specific IP address?
Note that Tomcat normally listens on 0.0.0.0, which means it will accept
connections on all IP address configured on the system.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
<mailto:users-unsubscr...@tomcat.apache.org>
For additional commands, e-mail: users-h...@tomcat.apache.org
<mailto:users-h...@tomcat.apache.org>
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org