title: Http request to local machine using host name not working in android Device
body: <p>I have an issue when I trying to call my web service by pointing to the machine in LAN.</p>
  
  <p>After some search over SO I have found that I cant use following patterns </p>
  
  <ol>
  <li><a href="http://localhost/" rel="nofollow">http://localhost/</a>..</li>
  <li><a href="http://localhost:port/" rel="nofollow">http://localhost:port/</a>..</li>
  <li><a href="http://127.0.0.1:port/" rel="nofollow">http://127.0.0.1:port/</a>..</li>
  </ol>
  
  <p>Then I tried to access it by specifying my machine name like this.</p>
  
  <ol>
  <li><a href="http://machine_name:port/" rel="nofollow">http://machine_name:port/</a>....</li>
  <li><a href="http://machine_name/" rel="nofollow">http://machine_name/</a>....</li>
  </ol>
  
  <p>Still it is not working from my android device. Can any one explain why I can do this? And Ho can I achieve this?</p>
  
  <p>Can anyone make this idea clear? because I want to know the differences in accessing a local server machine from other machines in same LAN and from an android phone. :)</p>