cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the client's IP address from a Web Dynpro application?

Former Member
0 Kudos

Hi,

Our company is currently considering a project that involves giving remote users access to our SAP portal.

Part of our requirements involve limiting certain functionalities based on the user's location. For example, a user should not be able to Clock In/Clock Out from remote locations. So, far I think that disabling the functionality based on the request IP address could be our best option.

The thing is, I think Web Dynpro doesn't allow me to access the HTTPRequest object.

Is there any way to achieve this?

Regards,

roberto

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Roberto,

I haven't tried this one but you can check if it helps :-

	IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
	IWDRequest request = protocolAdapter.getRequestObject();
	request.getClientHostAddress();

Chintan

Former Member
0 Kudos

Apparently, IWDProtocolAdapter was added in a later version of Web Dynpro framework.

Are there any other alternatives?