AnsweredAssumed Answered

How to retrieve IP adress

Question asked by scouil on Dec 5, 2011
Latest reply on Dec 15, 2011 by scouil

I first posted here but I thought it's be better to create a topic to express my own needs.
I usually do javascript webservices but for one of them I need to discriminate the content depending on the IP of the client and it's not available in js.

I've mainly evaluated 2 possible solutions but couldn't get any of them to work:
1) Expose the java object encapsulating the remote address
2) Write a java webservice

I know it's possible to retrieve the remote address in a basic servlet and was told (cf previous link) that it should be possible with a java webservice but I went through all the methods and couldn't retrieve it.

Thanks for your help,