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.

AxisProjectPages/ClientIP (last edited 2009-09-20 23:31:32 by localhost)