Search code examples
jakarta-eewebsocketipatmosphere

Accessing client IP using Atmosphere Framework


There is a way to access client's IP using the Atmosphere Framework's AtmosphereResource or WebSocket?


Solution

  • Here is the code:

    AtmosphereResource.getRequest().getRemoteAddr()