Hi folks,
This is probably a symptom of me never having written a traditional
Java web app, but...
How do you get the client's IP address?
Bear in mind that I'm using a JAX-WS Provider service rather than a WebService.
Thanks!
Andrew.
--
New site launched: http://biotext.org.uk/
I am
If you're running in the client code, you can use:
InetAddress.getLocalHost().getHostAddress()
David
2009/1/9 Andrew Clegg and...@nervechannel.com
Hi folks,
This is probably a symptom of me never having written a traditional
Java web app, but...
How do you get the client's IP address?
2009/1/9 David Bosschaert david.bosscha...@gmail.com:
If you're running in the client code, you can use:
InetAddress.getLocalHost().getHostAddress()
Nope, I meant in the service.
Andrew.
Probably need to have the WebServiceContext injected in, then from there, grab
the HttpServletRequest, then grab the information from there.
Dan
On Friday 09 January 2009 11:30:56 am Andrew Clegg wrote:
Hi folks,
This is probably a symptom of me never having written a traditional
Java web