cancel
Showing results for 
Search instead for 
Did you mean: 

to get IP address of client machine.

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

Look at the below thread..

Raja T

Message was edited by:

Armin Reichert

Answers (0)