I've tried with
System.Net.Dns.GetHostEntry(HttpContext.Connection.RemoteIpAddress.ToString()).ToString();
but that didn't work. I've also tried to use
PCName = Dns.GetHostEntry(Request.ServerVariables["REMOTE_ADDR"]).HostName;
but this seems to be deprecated for Core