You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hoffman, Randy" <ra...@schoolspecialty.com> on 2002/05/09 16:26:12 UTC

RE: Binding to multiple IP address, but not to localhost on TomCa t 4. x

Found this wasn't the problem at all.  It was the server element that binds
to a port waiting for a shutdown command, it binds to localhost.  It doesn't
appear there is anyway to override that.  Docs don't show an address
attribute.  I had the shutdown port the same  on both apps that were
running.  Does anyone know if there is a way to specify the ip address to
bind to to listen for the shutdown command?  I would you should be able to
do this.

thanks,

randy


-----Original Message-----
From: Hoffman, Randy 
Sent: Wednesday, May 08, 2002 9:21 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Binding to multiple IP address, but not to localhost on TomCat 4. x


I am trying to get tomcat 4.x to bind on the same port on different ip
addresses on the same box, but not on localhost.  Here is my problem.  I
have a Solaris 8 server with an IP of 10.10.10.1 and alias IP's of
10.10.10.2 and 10.10.10.3.  I have 2 apps that I want to run as separate
tomcat instances and listen on the same port, one on ip 10.10.10.2 and one
on 10.10.10.3.  When I start the first app it binds to 10.10.10.2, but also
binds to localhost (10.10.10.1).  When I start the second app, it binds to
10.10.10.3, but fails with address in use because it tries to bind to
localhost which app one already incorrectly grabbed.  I have my address
parameter set to the aliased ip's in the server.xml files and there is no
reference to localhost.  Is there a way to stop tomcat from binding to
localhost in addition to the specified ip?

Thanks,

randy hoffman

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>