on 04-23-2008 12:47 PM
Hi All ,
We have the Webdynpro application embedded on portal . Now we want to access the client details say the machine name / IP address when ever a user access our application . How can i achieve this using any sort of API (no JSP/Servlet/EJB) .
Could you please help me on this .
Thanks & Regards,
Mitul Adhia.
Please try
int port = DProtocolAdapter.getProtocolAdapter().getRequestObject().getServerPort();
String ipAddress = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostAddress() ;
Fereidoon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santhosh ,
Thanks for the prompt response ... i checked it works, but the getClientHostName() results in IP address not the machine name . Could you please let me know is ther any setting is required at client end ???
Thanks & Regards,
Mitul Adhia.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mitul,
You an use the following code to retrieve host name of the client
String hostName = WDProtocolAdapter.getProtocolAdapter().
getRequestObject().getClientHostName();
You also have one more method to get IP address.
String Address = WDProtocolAdapter.getProtocolAdapter().
getRequestObject().getClientHostAddress() ;
Hope this solves ur problem.
Let me know if solved
Regards,
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.