title: Resolve host name to an ip address
body: <p>I developed a client/server simulation application. I deployed client and server on two different Windows XP machines. Somehow, the client is not able to send requests to the server.</p>
  
  <p>I tried below options:</p>
  
  <ol>
  <li><p>Pinged server machine successfully from client using ip-address.</p></li>
  <li><p>Pinged client machine successfully  from server using ip-address.</p></li>
  <li><p>Checked netstat command line tool from both machines. Server is in <code>LISTENING</code> mode and client is in <code>SYS_SENT</code> mode. But the foreign address it is using to send is host name not the ip address.</p></li>
  <li><p>Pinged server machine unsuccessfully using host name from client.</p></li>
  <li><p>Pinged client machine successfully using host name from server.</p></li>
  </ol>
  
  <p>I feel the problem is when the client is trying to connect to the server using the host name.</p>
  
  <p>Could you please let me know how to force an application to use an ip address instead of a host name? Is there any other way to map the host name to an ip address?</p>