Discussion:
How to bind to multiple IP addresses?
Ryan Golhar
2003-12-10 17:09:58 UTC
Permalink
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,

Ryan
Tim Funk
2003-12-10 17:20:53 UTC
Permalink
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
Post by Ryan Golhar
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,
Ryan Golhar
2003-12-11 03:01:53 UTC
Permalink
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:***@joedog.org]
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
Post by Ryan Golhar
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-***@jakarta.apache.org
For additional commands, e-mail: tomcat-user-***@jakarta.apache.org
Chirs Wahl
2003-12-11 03:10:50 UTC
Permalink
Hi,
I am using sevlet and stateless Session Bean ,
I want to get session in session bean to get user info
(such as user ID), but I can not transfer request to
session bean , because can not transfer a parameter of
request by sessionbeanHome.create(), i.e.

sessionbeanHome.cr
Ben Souther
2003-12-11 03:07:17 UTC
Permalink
I'm not sure what you're trying to do. Can you post some code?

What do you mean by a stateless session bean? Are you running an EJB
container?
Post by Chirs Wahl
Hi,
I am using sevlet and stateless Session Bean ,
I want to get session in session bean to get user info
(such as user ID), but I can not transfer request to
session bean , because can not transfer a parameter of
request by sessionbeanHome.create(), i.e.
sessionbeanHome.create(req, ...),
Could someone help me?
Chris
Bodycombe, Andrew
2003-12-11 10:25:07 UTC
Permalink
Sounds like you need to use a stateful session bean instead.


-----Original Message-----
From: Chirs Wahl [mailto:***@ezcross.com]
Sent: 11 December 2003 03:11
To: Tomcat Users List
Subject: How to get session in Session Bean ?


Hi,
I am using sevlet and stateless Session Bean ,
I want to get session in session bean to get user info
(such as user ID), but I can not transfer request to
session bean , because can not transfer a parameter of
request by sessionbeanHome.create(), i.e.

sessionbeanHome.create(req, ...),

Could someone help me?

Chris
Ralph Einfeldt
2003-12-12 17:48:54 UTC
Permalink
IIS bind per default to all interfaces.

http://support.microsoft.com:/support/kb/articles/Q238/1/31.ASP
Post by Ryan Golhar
-----Original Message-----
Sent: Thursday, December 11, 2003 4:02 AM
To: 'Tomcat Users List'
Subject: RE: How to bind to multiple IP addresses?
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-----
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
<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
Post by Ryan Golhar
If been searching around for this and can't seem to find
the answer.
Post by Ryan Golhar
I know the Coyote connecter can bind to a particular
address, but if I
Post by Ryan Golhar
need it to bind to more than one IP address (but not all),
how can I
Post by Ryan Golhar
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,
---------------------------------------------------------------------
---------------------------------------------------------------------
Continue reading on narkive:
Loading...