How to get host name from ip address?

  • Thread starter Thread starter Hooyoo
  • Start date Start date
H

Hooyoo

Hello everyone,
Please tell me some methods to get host name from ip address, thank you.
 
that is an easy one,

System.Net.IPHostEntry ip =
System.Net.Dns.GetHostByAddress("192.168.1.1");
string hostname = ip.HostName;


Hooyoo schreef:
 

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

Back
Top