Request.UserHostAddress 可以记录客户段的ip地址 ~~

解决方案 »

  1.   

    获取客户端的IP地址:
    string viewip=Request.UserHostAddress.ToString();
      

  2.   

    Request.RawUrl.ToString();
    Request.UserHostAddress.Tostring();
      

  3.   

    怎么把这个获得的IP记录下了,判断不要该IP登录(或者提示过一段时间再登录)。多谢!程序...
      

  4.   

    Hi all, I don't it is practical at all. What happen if the client is using proxy? or his ISP enforec a proxy? Ar you going to ban the proxy IP?
      

  5.   

    Request.ServerVailables("Remote_Host")