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?

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-tp17809837p17809837.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]

Reply via email to