title: Get host name by IP address
body: <p>I tried to get the host name by IP address as bellow.</p>
  
  <pre><code>IPHostEntry entry = Dns.GetHostEntry(ipAddress);
  string hostName = entry.HostName;
  </code></pre>
  
  <p>But for printer devices. this gives <code>SocketException</code> says "No such host is known".</p>
  
  <p>Then I tried with <a href="https://github.com/angryip" rel="nofollow noreferrer">this</a> Ip scanner. It has shown a host name properly (And it is java). </p>
  
  <p>Is there any other way to get host name in C#? </p>