Page 1 of 1

End User IP Address

Posted: Thu Apr 21, 2011 3:31 am
by Rich Cassell
Hi,

For reasons including security checks and statistics collection, we think it would be really useful if we could find out the number of people who are logging on to our web services. One service we run in particular is an employee self-service system, so the end users could potentially be using it from home or at work.

The services themselves are Jade Web Enabled Forms, and what we'd really like to get is the IP Address of the end user when they log onto the service. With this, we could ensure that there are no attempts to log on to multiple accounts from the same system along with other useful checks. Knowing how many employees actually use the self-service will be good data to share with new potential customers.

The problem is, i have tried this in the past, using the individual session data, but it only seemed to return the IP address of our internal ISA serverm which is separate to the one that Jade runs from.

Is there any way that we can get the end users' IP Address?

Sorry if the solution to this is very simple. Any help will be appreciated.

Cheers,

Rich

Re: End User IP Address

Posted: Thu Apr 21, 2011 5:09 am
by ghosttie
The WebSession class can do this:

Code: Select all

remoteIP := getServerVariable('REMOTE_ADDR');
Don't know if that's any help

Re: End User IP Address

Posted: Tue Jun 14, 2011 9:16 am
by allistar
Keep in mind that with NAT you can have many different computers that all appear to have the same IP address. On top of that, with certain routing configurations you can have a single user whose IP address appears to change.