on 01-17-2006 7:49 AM
hi,all.
I used the UME in webdynpro.
Is there any API to get the current user's IP address?
THX.
Hi all, is there anybody can help us ? Its very urgent
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ty lu,
This is not possible with UME API.
You may cast WDWebContextAdapter.getRequest (do not remember exact name) to HttpServletRequest and try to obtain remote address from this object.
However, taking on account all issues with firewalls / proxies the result even in this case will be inaccurate.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rrrrr....
Armin is right, but...
In NW04s it is
import com.sap.tc.webdynpro.services.sal.adapter.api.WDProtocolAdapter;
...
WDProtocolAdapter.getProtocolAdapter().getRequestObject()
Sorry, I forget how to get http request object in pre-NW04s, try to search forum.
Valery Silaev
EPAM Systems
Hi,
I don't quite understand your query.
Do you mean to get the IP address of the system the user is using to view your application which has been deployed in a remote portal? If that is the case, then I am not too sure if you can do this. What if the user is inside a LAN and is using a proxy to connect to your portal? In that case the IP address that you'll get (if you manage to get it) will be of the proxy server. That is not what you want.
In case you want to retrieve the IP of the system on which the application is deployed, it's 127.0.0.1 .
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.