Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: How to bind to multiple IP addresses?

Ryan Golhar

2003-12-10

Replies:

I managed to get Tomcat to listen on 2 (out of 3) IP address.

When I try to start IIS on the third IP address, it says its already in
use, but I don't think it is. Has anyone ever run into this?

I have one web app developed using Tomcat for JSP pages and recently am
forced to put another web site on the same machine using IIS. I'm
wondering if it would be better to use a connector for my Tomcat webapp
and run both sites under IIS. Any thoughts?

Ryan

-----Original Message-----
From: Tim Funk [mailto:funkman@(protected)]
Sent: Wednesday, December 10, 2003 12:21 PM
To: Tomcat Users List
Subject: Re: How to bind to multiple IP addresses?


You *should* (not that i've tried) be able to use multiple connectors.
For
example, binding to 3 different rfc1918 addresses:

  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
          port="8080" minProcessors="5" maxProcessors="75"
          enableLookups="true" redirectPort="8443"
          acceptCount="100" debug="0" connectionTimeout="20000"
      address='192.168.0.1'
          useURIValidationHack="false" disableUploadTimeout="true"
/>
  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
          port="8080" minProcessors="5" maxProcessors="75"
          enableLookups="true" redirectPort="8443"
          acceptCount="100" debug="0" connectionTimeout="20000"
      address='10.0.2.2'
          useURIValidationHack="false" disableUploadTimeout="true"
/>

  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
          port="8080" minProcessors="5" maxProcessors="75"
          enableLookups="true" redirectPort="8443"
          acceptCount="100" debug="0" connectionTimeout="20000"
      address='172.16.24.22'
          useURIValidationHack="false" disableUploadTimeout="true"
/>


-Tim

Ryan Golhar wrote:

> If been searching around for this and can't seem to find the answer.
> I know the Coyote connecter can bind to a particular address, but if I

> need it to bind to more than one IP address (but not all), how can I
> specify multiple IP addresses? I tried adding multiple connectors,
> but that didn't work. I also tried adding multiple IP addresses in
> address=".." and that didn't work either, or I'm formatting it
> incorrectly. Does anyone have any ideas? Thanks,
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.