I need to identify the remote ip and port of clients that register on my service. Also, when the client web application goes down, it does not register from my web service. I use HttpServletRequest.getRemoteAddress () and HttpServletRequest.getRemotePort () to identify clients.
but the problem is that when I test on the same computer, I get different ports from the same web client application.
I am running the JAX-WS web service on GlassFish, and the client web application is also installed in one container. In addition, I am running Fedora 14 VBox VM.
source
share