87,995
社区成员
发帖
与我相关
我的任务
分享
string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (null == result || result == String.Empty)
{
result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
string ip = Request.UserHostAddress;
xml = new ActiveXObject("Microsoft.XMLHTTP");
xml.open("GET","http://www.zu14.cn/ip/",false);
xml.send();
alert(xml.ResponseText);