users@grizzly.java.net

Re: can't figure out ClientIP (request.remoteAddr())

From: Alan Williamson <alan_at_blog-city.com>
Date: Tue, 04 Dec 2007 09:32:29 +0000

You need to tell Grizzly you want to read this information

in your service method put in:

   req.action(ActionCode.ACTION_REQ_HOST_ADDR_ATTRIBUTE, null);

[don't fool me for a Grizzly expert, this question i asked just last
week and Jeanfrancois contribued the answer]

:)

Xasima Xirohata wrote:
> Hello. How to figure out the Client IP (or client ip behind proxy) using
> standalone grizzly (with no glassfish installed) .

-- 
Alan Williamson
  "a wiki -and- a blog" @ http://www.Blog-City.com/
  b: http://alan.blog-city.com/