I need to get IP address of the client(user) not server. I tried with these codes, both these returned IP address of the server but not client. Is there any other way? Please help.
InetAddress thisIp =InetAddress.getLocalHost();
String IPAddress = thisIp.getHostAddress();
IWDRequest request = WDProtocolAdapter.getProtocolAdapter() .getRequestObject() ;
String ip= request.getClientHostAddress();