Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

to get IP address of client machine.

hi Experts,

We have tried using the following code in Webdynpro for Java

import com.sap.tc.webdynpro.services.sal.adapter.api.WDProtocolAdapter; 

String ipAddress = WDProtocolAdapter 
  .getProtocolAdapter() 
  .getRequestObject() 
  .getClientHostAddress(); 

The above code is working on the Dev and Quality environment and gives IP address of client machine sucessfully.

But when we try the same task using the same code on Production server it gives IP address of production server itself.

I think it is because of reverse proxy setting for exposing our portal on internet, which is not there on dev and Quality.

If any one has any solution for this problem please reply as early as possible.

Regards,

Sanjyoti.

Former Member
replied

Look at the below thread..

Get server and client ip address and port

Raja T

Message was edited by:

Armin Reichert

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question