millseyno1
02-02-2009, 05:56 AM
I am trying to get the IP address of visitors to my website, but all i manage to get is the IP of the firewall. Can you help?
Code Currently Used
Dim strIpAddress
strIpAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If strIpAddress = "" Then
strIpAddress = Request.ServerVariables("REMOTE_ADDR")
End If
IpAddress = strIpAddress
Code Currently Used
Dim strIpAddress
strIpAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If strIpAddress = "" Then
strIpAddress = Request.ServerVariables("REMOTE_ADDR")
End If
IpAddress = strIpAddress