cancel
Showing results for 
Search instead for 
Did you mean: 

Code to fetch out IP of EP user

Former Member
0 Kudos

Hi all

I want to make an application in web deynpro . Requirement is like , I want to capture IP of machine from which user logs into portal fro security reasons.

I have tried following java code to fetch IP of machine . Its working fine in development and Quality but not in production. In dev and QA its giving IP of machine but due to revese proxy settings in the production sever its fetching IP of portal instead of IP of machine.

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

String ipAddress = WDProtocolAdapter

.getProtocolAdapter()

.getRequestObject()

.getClientHostAddress();

any suggestions are appriciated

Regards

Abhay

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I know its too much of time......

Can you please tell me if you were able to fetch the actual ip of the client machine.I have a similar scenario and I need to get the client's Ip to determine whether the user has logged in from internet or intranet....

Please help.......

former_member751941
Active Contributor
0 Kudos

Hi Abhay,

Check this threads.

Regards,

Mithu