Forum Moderators: open

Message Too Old, No Replies

ASP tracert equivalent to get User IP address?

         

UFfan

6:25 pm on Aug 23, 2007 (gmt 0)

10+ Year Member



I would like to get the IP address of users that come to my site. Similar to a tracert. Is that possible?

My site is built in ASP and I currently use the server variable Request.ServerVariables("LOCAL_ADDR") but it is not accurate for regional location.

Any help would be appreciated.

UFfan

6:45 pm on Aug 23, 2007 (gmt 0)

10+ Year Member



Well one problem is I was using the wrong sever variable
Request.ServerVariables("REMOTE_ADDR") this helps but how accurate is it?

mrMister

2:38 pm on Aug 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



REMOTE_ADDR is the most accurate way there is of getting the user's IP address.

[edited by: mrMister at 2:38 pm (utc) on Aug. 31, 2007]