You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Surendra Kumar <su...@cisco.com> on 2004/06/21 11:05:51 UTC
HTTPRequest object returns null for getRemoteHost()
Hi Everyone
I am using Tomcat 4.1.29 and the getRemoteHost() call from HttpServletRequest is returning null.
Do i need to need to configure anything for this api to work ?
Thanks
Surendra
Re: HTTPRequest object returns null for getRemoteHost()
Posted by Surendra Kumar <su...@cisco.com>.
Hi Carsten
I did that and it still returns null. Even if i haven't enabled, it
should return me the ip not null value.
I am using "org.apache.ajp.tomcat4.Ajp13Connector" connector.
Any clues ?
Thanks
Surendra
----- Original Message -----
From: "Carsten Lex" <c....@deepweb.de>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, June 21, 2004 2:55 PM
Subject: Re: HTTPRequest object returns null for getRemoteHost()
>
> Hi,
>
> by default enableLookups is enabled (==true)
> You can add the parameter enableLookups="true" to a Connector, then
> getRemoteHost() gives you the desired information
>
> Carsten
>
> Surendra Kumar wrote:
>
> >Hi Everyone
> > I am using Tomcat 4.1.29 and the getRemoteHost() call from
HttpServletRequest is returning null.
> > Do i need to need to configure anything for this api to work ?
> >
> >Thanks
> >Surendra
> >
> >
> >
>
> --
>
>
>
>
>
> Mit freundlichen Grüßen
>
> Dipl.Inform. Carsten Lex
> Geschäftsführer
> DeepWeb GmbH
>
> ------------------------
> DeepWeb GmbH
> Universität, Gebäude 30
> 66123 Saarbrücken
>
> Tel.: 0681 - 302 6308
> Mobil: 0163 - 33 37 002
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: HTTPRequest object returns null for getRemoteHost()
Posted by Carsten Lex <c....@deepweb.de>.
Hi,
by default enableLookups is enabled (==true)
You can add the parameter enableLookups="true" to a Connector, then
getRemoteHost() gives you the desired information
Carsten
Surendra Kumar wrote:
>Hi Everyone
> I am using Tomcat 4.1.29 and the getRemoteHost() call from HttpServletRequest is returning null.
> Do i need to need to configure anything for this api to work ?
>
>Thanks
>Surendra
>
>
>
--
Mit freundlichen Grüßen
Dipl.Inform. Carsten Lex
Geschäftsführer
DeepWeb GmbH
------------------------
DeepWeb GmbH
Universität, Gebäude 30
66123 Saarbrücken
Tel.: 0681 - 302 6308
Mobil: 0163 - 33 37 002
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org