Thanks a lot getThreadLocalRequest().getRemoteHost(); on server side works properly
2009/1/26 Lothar Kimmeringer <[email protected]> > > Mikhail M schrieb: > > Did someone know how to get IP address in GWT? > > On the client-side? You can't. > > > I try to use servlet method getInitParameter("paramName") method but it > > returns null :( > > So you want to get the remote-address on the server-side inside > the servlet? This is not GWT-related. Try > getThreadLocalRequest().getRemoteHost(); > or > getThreadLocalRequest().getRemoteAddr(); > > > Regards, Lothar > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
