J James Oct 31, 2006 #1 Is there a way to get the name of a computer on the local network if you know its Ip address and or its Mac address?
Is there a way to get the name of a computer on the local network if you know its Ip address and or its Mac address?
K Kevin Spencer Oct 31, 2006 #2 Use the System.Net.Dns class. See http://msdn2.microsoft.com/en-us/library/system.net.dns.aspx -- HTH, Kevin Spencer Microsoft MVP Short Order Coder http://unclechutney.blogspot.com The devil is in the yada yada yada
Use the System.Net.Dns class. See http://msdn2.microsoft.com/en-us/library/system.net.dns.aspx -- HTH, Kevin Spencer Microsoft MVP Short Order Coder http://unclechutney.blogspot.com The devil is in the yada yada yada
R ReyN Oct 31, 2006 #3 hello James there may be other ways, but here's what I use string ip = Request.ServerVariables [ "REMOTE_HOST" ]; msg.Text += "<p>You are currently logged on " + ip + " [ " + System.Net.Dns.GetHostByAddress ( ip ).HostName + " ]</p>";
hello James there may be other ways, but here's what I use string ip = Request.ServerVariables [ "REMOTE_HOST" ]; msg.Text += "<p>You are currently logged on " + ip + " [ " + System.Net.Dns.GetHostByAddress ( ip ).HostName + " ]</p>";