cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Capturing of IP Address through Java Code

Former Member
0 Likes
1,416

Dear All,

I have a situation in my Webdynpro Java Application where I have to capture the IP address of the end user's PC. I use the below code for capturing IP:

IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();

String ipAddress = req.getClientHostName();

The problem is, the code is working perfectly in Quality system, but not in Production system. The IP which is captured in the Production system is the Portal IP itself. Is the problem has to do with some Network settings or the code has to be changed?

View Entire Topic
Former Member
0 Likes

Hi Sujai

There was a similar issue faced by me while in ITS.

You have to cross check with internet settings+port+clear histrory and other popins.

Also in the code where URL is provided : Check the path should be proper, not refering to sap logon files present in local drives, so as to make system independent.

Former Member
0 Likes

Hi Sunita,

Thanks for taking time to reply. Can you be more clearer regarding the Internet Settings, port and other popins that needs to be checked?