title: Unable to connect to remote server when hitting an API
body: <p>I am facing a very weird issue:</p>
  
  <p>Case 1: Using ASP.NET Web Development Server: The application hits an API, and everything works fine.</p>
  
  <p>Case 2: I host my application (MVC) on IIS: When the application tries to hit the API, it gets the error:</p>
  
  <blockquote>
    <p>"Unable to connect to remote server": {"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 96.17.180.160:80"}</p>
  </blockquote>
  
  <p>Line of code:</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(api);
  HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // This line breaks...
  </code></pre>