How to get host name from ip address?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hooyoo

    How to get host name from ip address?

    Hello everyone,
    Please tell me some methods to get host name from ip address, thank you.

  • beeswax

    #2
    Re: How to get host name from ip address?

    that is an easy one,

    System.Net.IPHo stEntry ip =
    System.Net.Dns. GetHostByAddres s("192.168.1.1" );
    string hostname = ip.HostName;


    Hooyoo schreef:
    Hello everyone,
    Please tell me some methods to get host name from ip address, thank you.

    Comment

    Working...