computer name

  • Thread starter Thread starter James
  • Start date Start date
J

James

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?
 
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>";
 
Back
Top