hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HttpServer: How to get Client IP
Date Fri, 02 Sep 2011 15:57:32 GMT
On Fri, 2011-09-02 at 08:22 -0700, angelogeminiani wrote:
> Hi,
> I'm writing an HTTP server and I need client IP.
> I'm using httpcore 4.1.3.
> In Servlets it's easy: request.getRemoteAddr().
> Is there similar method in HttpRequest, or a way to retrieve client IP from
> server?

You can cast any instance of the HttpConnection interface to
HttpInetConnection in order to get access to IP address of its



To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message