View Single Post
  #2 (permalink)  
Old Jan 19th, 2007, 02:28
alexk13 alexk13 is offline
New Member
Join Date: Feb 2006
Location: Australia
Age: 37
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IP address into MS Access database

Try this (untested but is the normal way i do things like this)
Code: Select all
sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If trim(sIPAddress)="" Then 
  sIPAddress = Request.ServerVariables("REMOTE_ADDR")
End If
HTH
Alex
Reply With Quote