On 12 Jun 2008 at 14:14, illusion wrote:

Date sent:              Thu, 12 Jun 2008 14:14:11 -0700 (PDT)
From:                   illusion <[EMAIL PROTECTED]>
Subject:                mapping tomcat to ip address behind router
To:                     users@tomcat.apache.org
Send reply to:          Tomcat Users List <users@tomcat.apache.org>

> 
> Hey,
> 
> I want to set-up tomcat to serve http requests from behind a router.
> When
> there is a direct internet connection and no router, and the
> address
> property is added and port number is changed in server.xml as below
> in
> example 1, tomcat serves requests fine for http://99.153.32.456. 
> 
> When I set it up to run behind a router as show in example 2, with
> the
> router forwarding requests to 192.168.0.54 which is the computer
> behind the
> router with tomcat, it does not work for the url
> http://99.153.32.456.  What
> is the correct way to set it tomcat behind a router?

Your ISP, like most others, blocks port 80 for home/non business connections. 
You will have 
to run tomcat on a non standard port such as 10000. Keep in mind that running 
servers on 
your connection may violate the terms of service of your ISP.


-Steve O.




> 
> thanks in advance for your assistance
> 
> Example 1 - no router - works
> 
> <Connector port="80" protocol="HTTP/1.1" 
>                connectionTimeout="20000" 
>                address="99.153.32.456"
>                redirectPort="8443" />
>     <!-- A "Connector" using the shared thread pool-->
>     <!--
>     <Connector executor="tomcatThreadPool"
>                port="80" protocol="HTTP/1.1"
>                address="99.153.32.456" 
>                connectionTimeout="20000" 
>                redirectPort="8443" />
>     -->       
> 
> Example 2 - behind router - does not work
> 
> <Connector port="80" protocol="HTTP/1.1" 
>                connectionTimeout="20000" 
>                address="192.168.0.54"
>                redirectPort="8443" />
>     <!-- A "Connector" using the shared thread pool-->
>     <!--
>     <Connector executor="tomcatThreadPool"
>                port="80" protocol="HTTP/1.1"
>                address="192.168.0.54" 
>                connectionTimeout="20000" 
>                redirectPort="8443" />
>     -->   
> 
>     
> -- 
> View this message in context:
> http://www.nabble.com/mapping-tomcat-to-ip-address-behind-router-tp1
> 7809837p17809837.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> --------------------------------------------------------------------
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to