title: Get IPAddress from a hostname
body: <p>I want to get IP address of a host on my <code>aspx</code> page using <code>C#</code>, I'm using DNS class methods to get these.</p>
  
  <p>It worked fine locally, but when I deployed the solution on IIS7 it returned only the IP address assigned by ISP but I want local IP address of that machine.</p>
  
  <p>Any suggestion?</p>