Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 30545 invoked from network); 13 Jun 2008 04:08:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2008 04:08:47 -0000 Received: (qmail 53935 invoked by uid 500); 13 Jun 2008 04:08:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53902 invoked by uid 500); 13 Jun 2008 04:08:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 53891 invoked by uid 99); 13 Jun 2008 04:08:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 21:08:37 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [196.25.240.81] (HELO ctb-mesg-1-3.saix.net) (196.25.240.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2008 04:07:45 +0000 Received: from animal (dsl-243-77-159.telkomadsl.co.za [41.243.77.159]) by ctb-mesg-1-3.saix.net (Postfix) with SMTP id 23AB06DC7 for ; Fri, 13 Jun 2008 06:07:19 +0200 (SAST) Message-ID: <003a01c8cd0b$0c175850$0300000a@animal> From: "Johnny Kewl" To: "Tomcat Users List" References: <17809837.post@talk.nabble.com> Subject: Re: mapping tomcat to ip address behind router Date: Fri, 13 Jun 2008 06:07:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 080602-0, 2008/06/02), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- From: "illusion" To: Sent: Thursday, June 12, 2008 11:14 PM Subject: mapping tomcat to ip address behind router > > 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 > > connectionTimeout="20000" > address="99.153.32.456" > redirectPort="8443" /> > > > > Example 2 - behind router - does not work > > connectionTimeout="20000" > address="192.168.0.54" > redirectPort="8443" /> > > illusion, you have now probably screwed up the TC config... Reload the the standard TC config, and just change the 8080, to 80, dont touch other stuff for now. Then google, I think you have one of those ADSL Nat Router things Heres an article with someone else struggling along http://sanzon.wordpress.com/2008/04/04/setting-up-web-server-behind-router-wrt54g2/ Whats probably screwing you up is even though you have it forwarding, the IP's internally are being dynamicly assigned, you have to give the server a fixed IP, typically this is not the ISP IP, its the machine IP, and then you need to check the machine and make sure its using your router as the gateway. Its not really a TC thing, best thing is to look at the router name and google for it and web server. These little box's now a days have some amazing functionality, so you need to find the manual for the thing. You need to check the Dynamip DNS is not on, DHCP is not assinged to the server, the DNS discovery is set or on auto, the network masks are right etc. If your SP supplied the router, they "should" know how to set the thing up, dont mention tomcat, its got nothing to do with it, just tell em its a web server on a machine.... if that works, TC will work. And then learn to do things like ping a machine etc. Have fun.... --------------------------------------------------------------------------- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --------------------------------------------------------------------------- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org