ASP.NET 获取客户端访问端口
2013-05-28 14:14
281 查看
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { System.Collections.Specialized.NameValueCollection coll = Request.ServerVariables; foreach (string key in coll.AllKeys) { foreach (string value in coll.GetValues(key)) { Response.Write(key + "------" + value + "<br/>"); } } string port = Request.ServerVariables["REMOTE_PORT"].ToString(); Response.Write(port); } }
相关文章推荐
- ASP.NET 获取客户端访问端口
- Asp.net MVC获取访问系统的客户端计算机的主机名和IP地址
- asp.net 获取客户端浏览器访问的IP地址的实例代码
- asp.net 获取客户端浏览器访问的IP地址
- asp.net中获取客户端ip地址的两种方法
- Asp.net获取客户端IP常见代码存在的问题:伪造IP
- 客户端获取服务器SessionID (Asp.net SessionID)
- ASP.NET 以 Request.Querystring、Request.Form 或 Request.Params 获取客户端的数据
- ASP.NET获取客户端IP/用户名等信息
- 获取客户端IPAsp.Net
- ASP.NET获取客户端的相关信息
- asp.net 获取客户端IP
- ASP.NET 怎么获取客户端的外网IP地址
- c# asp.net 获取客户端表单的数据(15)
- Asp.Net获取客户端信息-学习中
- ASP.NET获取客户端浏览器信息!
- ASP.NET AJAX(4)__客户端访问WebService
- ASP.NET获取客户端的操作系统、浏览器、.NET版本等信息
- ASP.NET获取客户端IP及MAC地址