Q: How do I get the IP address of the client?

A: Use the following:

    String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR); 

Note: your client IP address can be misleading sometimes because of proxy servers.

FrontPage/Axis/ClientIP (last edited 2009-09-20 22:48:23 by localhost)