java - How to get the I.P. Address of client that is hitting your webservice? -
itemprop = "text">
The title says too much, I have written a rev website on Java using RSS and jersey in Java, and I Like the removal of an IP address of the customer coming into my code if I have a class:
@ path ("/ service") public category service {@GET public zero doAction () {// ...}} What do I do from there?
P I'm asking for debugging help No , I'm asking how can I retrieve the IP address of the customer connecting to my web service @ NIRTRAR gave a good answer
How to @ContextHTMLProviderViewer P> @GET Public ZeroAction (@Contact HTTPSvette Request) {// Get IP address string ipAddress = req.getRemoteHost () again; }
Comments
Post a Comment