Hilco Wijbenga <hilco.wijbenga@...> writes:

> 
> On 6 February 2012 14:25, IHateSoda <mguillaume21@...> wrote:
> > I'm trying to get my IP address (192.168......) but I always get the
> > localhost IP (127.0.0.1).
> 
> You are presumably running your appserver (Tomcat, Jetty, ...)  as
> localhost. If you want the servlet to return something else then do
> not run as localhost.
> 


I think this is what you're looking for...

                HttpServletRequest request = perThreadRequest.get();
                String ipAddress = request.getRemoteAddr()

-Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to