End User IP Address

For questions and postings not covered by the other forums
Rich Cassell
Posts: 77
Joined: Mon Aug 24, 2009 11:22 pm
Location: Nottinghamshire, UK

End User IP Address

Postby Rich Cassell » Thu Apr 21, 2011 3:31 am

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

User avatar
ghosttie
Posts: 181
Joined: Sat Aug 15, 2009 1:25 am
Location: Atlanta, GA, USA
Contact:

Re: End User IP Address

Postby ghosttie » Thu Apr 21, 2011 5:09 am

The WebSession class can do this:

Code: Select all

remoteIP := getServerVariable('REMOTE_ADDR');
Don't know if that's any help
I have a catapult. Give me all the money or I will fling an enormous rock at your head.

allistar
Posts: 156
Joined: Fri Aug 14, 2009 11:02 am
Location: Mount Maunganui, Tauranga

Re: End User IP Address

Postby allistar » Tue Jun 14, 2011 9:16 am

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.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 32 guests

cron