欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

ASP获取ip地址 有大用

function getipadd()
 ipadd=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
 if ipadd= "" Then ipadd=Request.ServerVariables("REMOTE_ADDR")
 getipadd=ipadd
end function

使用:
response.write getipadd


来自  https://zhidao.baidu.com/question/51124734.html
普通分类: