Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 07, 2007 at 11:45 PM

    Look at the below thread..

    get-server-and-client-ip-address-and-port

    Raja T

    Message was edited by:

    Armin Reichert

    Add comment
    10|10000 characters needed characters exceeded