title: Error due to difference between localhost and local IP address
body: <p>I have visited to <a href="https://stackoverflow.com/questions/6938039/localhost-vs-real-ip-address">this</a> link and got to know about the differences between localhost and localIP address.</p>
  
  <p>I have got problem saying <code>Access is denied</code> while accessing my own <code>asp.net</code> api hosted 
  in my local <code>IIS server</code> with the following url</p>
  
  <pre><code>http://172.18.12.166/FinalApi/api/movie.
  </code></pre>
  
  <p>It works finely if I use following url to access the api</p>
  
  <pre><code>http://localhost/FinalApi/api/movie
  </code></pre>
  
  <p>In the console of browser the request can be visualized as</p>
  
  <p><img src="https://i.stack.imgur.com/UpjCf.png" alt="enter image description here"></p>
  
  <p>This means the request is completed with no error. But this returns no data if I use localIP address in case of localhost.</p>
  
  <p>But this works finely while requesting from other computers on the same network.</p>