16
07/18
.netcore获取客户端电脑名和IP
public string GetUserName() { var username = System.Net.Dns.GetHostEntry(Request.HttpContext.Connection.RemoteIpAddress).HostName; return username; }
public string GetUserName() { var username = System.Net.Dns.GetHostEntry(Request.HttpContext.Connection.RemoteIpAddress).HostName; return username; }