获取服务端和客户端的信息

            //服务器ip:
            //string S_Ip = Request.ServerVariables.Get("Local_Addr").ToString();
            //服务器主机名:
            //string S_Name = Request.ServerVariables.Get("Server_Name").ToString();
            //客户端ip:
            //string C_Ip = Request.ServerVariables.Get("Remote_Addr").ToString();
            //客户端主机名:
            //string C_Name = Request.ServerVariables.Get("Remote_Host").ToString();

  

posted @ 2011-09-08 16:44  村口野狼  阅读(242)  评论(0编辑  收藏  举报