WebNov 27, 2024 · I'm trying to list the names of the computer names currently online on a network. I've only managed to get the get active IPs but I cannot get the computer name of these IPs. Any ideas ? WebSep 26, 2016 · Use HttpRequest.UserHostAddress and HttpRequest.UserHostName for client IP and machine name. Assuming you have authentication configured correctly, you can get the client user from IIdentity.Name. In the context of a Page, you can use Request.UserHostAddress, Request.UserHostName and User.Identity.Name. Share …
C# - Get Operating System from IP address / DNS Name
WebFeb 17, 2011 · You can get the remote endpoint's IP address from the current OperationContext's IncomingMessageProperties, eg: RemoteEndpointMessageProperty messageProperty = OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name] … WebNov 29, 2006 · Use Environment.MachineName to get the local machine's NetBIOS name. Here's some code that will get one of the IP addresses assigned to the local computer, … pc world pc specialist
c# - Get host name from IP address - Stack Overflow
WebJan 6, 2010 · IPAddress [] localIPs = Dns.GetHostAddresses (Dns.GetHostName ()); Your machine doesn't have a single IP address, and some of the returned addresses can be IPv6. MSDN links: Dns.GetHostAddresses IPAddress Alternatively, as MSalters … WebJul 28, 2024 · string IP = Request.UserHostName; IPAddress myIP = IPAddress.Parse (IP); IPHostEntry GetIPHost = Dns.GetHostEntry (myIP); List deviceName = GetIPHost.HostName.ToString ().Split ('.').ToList (); This method is working for most cases, but we are aware that this method is not always reliable. WebJun 13, 2011 · This is an asp.net mvc application. string clientMachineName; clientMachineName = (Dns.GetHostEntry (Request.ServerVariables ["remote_addr"]).HostName); Response.Write (clientMachineName); I want the computer name or machine name of the client that is making request. The above code gives me … sctv free monthly training