Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 82624 invoked from network); 2 Jul 2007 12:26:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2007 12:26:45 -0000 Received: (qmail 50092 invoked by uid 500); 2 Jul 2007 12:26:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 50070 invoked by uid 500); 2 Jul 2007 12:26:34 -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 50059 invoked by uid 99); 2 Jul 2007 12:26:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 05:26:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [195.227.30.246] (HELO datura.kippdata.de) (195.227.30.246) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 05:26:30 -0700 Received: from [195.227.30.148] (larix [195.227.30.148]) by datura.kippdata.de (8.13.5/8.13.5) with ESMTP id l62CQ941026474 for ; Mon, 2 Jul 2007 14:26:09 +0200 (CEST) Message-ID: <4688EEE1.8060502@kippdata.de> Date: Mon, 02 Jul 2007 14:26:09 +0200 From: Rainer Jung User-Agent: Thunderbird 1.5.0.8 (X11/20061110) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: Tomcat - Apache: IP replacement References: <7E68667569F8F24AA9A89D8A0E7D872E4512C0@mailserver2003.equitystory.local> In-Reply-To: <7E68667569F8F24AA9A89D8A0E7D872E4512C0@mailserver2003.equitystory.local> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I'm sorry, in fact that's what I wanted to tell you. I tested with Apache and Tomcat not on the same machine, but with the client on the Apache machine. If I move the client to another machine, the result is the wanted result, it shows the IP of the client. I tend to agree with Johnny Kewl, most of the times one notices strange IP address behaviour it comes from IPv6. But unfortunately this comment doesn't solve your problem :( Regards, Rainer Nino Ulsamer wrote: > Rainer, > thanks for your comment. But I don't want to see the Apache server address, I want to see the address of the user who originally started the request! > Nino > > -----Urspr�ngliche Nachricht----- > Von: Rainer Jung [mailto:rainer.jung@kippdata.de] > Gesendet: Montag, 2. Juli 2007 12:22 > An: Tomcat Users List > Betreff: Re: Tomcat - Apache: IP replacement > > Something is wrong with your configuration or box setup. > request.getRemoteAddr() works for me, it shows the Apache server address > used by the request. > > Regards, > > Rainer > > Nino Ulsamer wrote: >> Hello, >> >> I have a problem with finding out the IP address of requests in Tomcat. >> I'm using the HttpServletRequest.getRemoteAddr() function, but it >> returns "0.0.0.0". My server configuration is as follows: Apache >> receives all requests and forwards them to Tomcat via mod_jk. Probably >> in this step it replaces the address of the original request by its own >> address. I've read a lot about this topic already, but I always found >> the solution being "you should use mod_jk". I'm using JK 1.2, is it >> possible to configure it so that it does not replace the IP address? >> >> Thanks a lot, >> >> Nino Ulsamer --------------------------------------------------------------------- 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