Program

Life is like a box of chocolates.You never know what you're gonna get

2008年9月25日 #

[导入]ASP.NET获取客户端IP地址的几点补充[转载]

摘要: 通常我们都通过下面的代码获得IP: string ip =System.Web.HttpContext.Current.Request.UserHostAddress; 或 string ip =System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];REMOTE_ADDR 说明:访问客户端的 IP 地址。 此... 阅读全文

posted @ 2008-09-25 14:35 末世纪狂潮 阅读(137) 评论(0) 推荐(0) 编辑

导航