获取用户IP

userip=Request.ServerVariables("HTTP_X_FORWORD_FOR")

if userip="" then

    userip=Request.ServerVariables("REMOTE_ADDR")

End if

原文地址:https://www.cnblogs.com/djcsch2001/p/2035734.html