Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get IP in SmartGWT?

    Did someone know how to get IP address in SmartGWT?
    On the client-side?

    Thanks!

    #2
    That's not possible. Only the webserver will know the IP of the client, and that doesn't mean it is really the client's IP (could be a proxy or NAT etc).

    Your servlet can get it via class HttpServletRequest getRemoteAddr() and getRemoteHost().

    Now Jetty, which comes with the newest GWT, seems to have a setting to not resolve the address (for speed) by default. But I can't seem to find this configuration setting to set this back.

    Comment

    Working...
    X