Is there any way I can get the client's Hostname or ComputerName/Device ?
I'm using ASP.Net Core MVC.
The purpose of this is to identify if a user is working on a specified machine or not.
Is there any way I can get the client's Hostname or ComputerName/Device ?
I'm using ASP.Net Core MVC.
The purpose of this is to identify if a user is working on a specified machine or not.
I tried this one and it works
string hostName = Dns.GetHostEntry(HttpContext.Connection.RemoteIpAddress).HostName;