on 02-17-2012 9:03 PM
Hi,
We have a requirment to find teh IP address of the the login user. Basically our business wants to track the IP address of the vendors and so we can server them in better way.
And also our business can track the vendors by their actual location based on their login details.
Can you please help here?
We tried:
*****************************Java Lib************************************
String computername=InetAddress.getLocalHost().getHostName();
== It returns the JBoss app server's IP adress.
**********************************************************************************
*****************************javax.servlet.http.HttpServletRequest*************
ip = request.getHeader("X-FORWARDED-FOR");
== "request" class is undefined erro
**********************************************************************************
The class "com.frictionless.api.common.platform.IapiSessionContextIfc" doesn't have all teh session details. But we can able to fidn the "sessionid" (session.getSessionId()), but not able to find the IP address.
Please help
Sudhahar
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Much, Vikram!
It worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhahar,
Iu2019m not sure if I fully understand the requirement here. But in any case, you might want to check out the User Activity Report which shows the IP of the logged in users. To access the report go to , Setup page > System Administration > User Activty.
Hope this helps.
Regards,
Vikram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.