Hi
You can collect IP address of the visitor by using Request object and its ServerVariable pairs. Below is the sample code to get it done.
Function UserIP()
’ This returns the True IP of the client calling the requested page
’ Checks to see if HTTP_X_FORWARDED_FOR has a value then the client is operating via a proxy
UserIP = Request.ServerVariables ( "HTTP_X_FORWARDED_FOR" )
If UserIP = "" Then
UserIP = Request.ServerVariables ( "REMOTE_ADDR" )
End if
End Function
Please use the below link for your reference
http://aspdownload.com/read/?art=3225