If you're running in the client code, you can use: InetAddress.getLocalHost().getHostAddress()
David 2009/1/9 Andrew Clegg <[email protected]> > 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 retiring my old email addresses. > Please use [email protected] (i.e. andrew) in the future. >
