sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If trim(sIPAddress)="" Then sIPAddress = Request.ServerVariables("REMOTE_ADDR") End If