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/08 16:21:00 UTC
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