Java Mailing List Archive

http://www.junlu.com/

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

Re: How to bind to multiple IP addresses?

Tim Funk

2003-12-10

Replies:

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)



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