C# fail to get some client computer name

后端 未结 1 1259
我寻月下人不归
我寻月下人不归 2021-01-29 06:51

I have used the below code to get client computer name, however it work for some of the clients and some of the client get error

        string IPAdd = Request.U         


        
相关标签:
1条回答
  • 2021-01-29 07:12

    Use this code

    string compName = Environment.MachineName.ToString();

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