有什么办法可以得到客户的主机名或计算机名/设备吗?
我正在使用ASP.Net Core。
这样做的目的是确定用户是否在使用指定的计算机。
发布于 2022-04-20 02:07:26
我试过这个,它起作用了
string hostName = Dns.GetHostEntry(HttpContext.Connection.RemoteIpAddress).HostName;
https://stackoverflow.com/questions/71932997
相似问题