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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -