return Request.UserHostAddress.ToString().Trim();
黑色头发:http://heisetoufa.iteye.com/
return Request.UserHostAddress.ToString().Trim();
黑色头发:http://heisetoufa.iteye.com/
咨询区 eadam:在 ASP.NET 中我可以用 Request.ServerVariables["REM
要想透过代理服务器取得客户端的真实IP地址,就要使用 Request.ServerVariables("HTTP_X_FORWARDED_FOR") 来读取。
作者:绝地苍狼 最近有的网友问我asp.net怎么样获取客户端的IP地址,asp.net怎么样判断是否是IP地址。这里我把我常用的获取客户端IP地址的方法和检查是否是IP地址的方法贴出来给大家分享,希望对各位网友有帮助. /// <summary>/// 获取IP地址///
ASP.NET获取客户端IP及MAC地址2008-12-01 14:50ASP.NET获取客户端IP及MAC地址
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M