cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the IP address of the login user?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

.

Former Member
0 Kudos

Thanks Much, Vikram!

It worked.

0 Kudos

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