client ip address

后端 未结 2 1345
小鲜肉
小鲜肉 2021-01-05 06:45

How to get client ip address in asp.net.

相关标签:
2条回答
  • 2021-01-05 06:59
    HttpRequest.UserHostAddress 
    

    http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx

    0 讨论(0)
  • 2021-01-05 07:10

    i used that in ASP.NET 3.5
    string ip = Request.UserHostAddress();

    0 讨论(0)
提交回复
热议问题