取IP地址

asp函数

2008-05-24 08:59

function ip123()
dim userip
userip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If userip = "" Then userip = Request.ServerVariables("REMOTE_ADDR")
ip123=userip
end function