computer name

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?
 
R

ReyN

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>";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top