title: 127.0.0.1 This site can’t provide a secure connection
body: <p>I am creating an ASP.NET web application and currently running it with Visual Studio's built in IIS Express. It normally starts up on <code>localhost</code> and runs just fine.  However, one of the external API's I'm calling requires the callback of my application redirect to <code>127.0.0.1</code> instead of <code>localhost</code> (it uses the OAuth2 flow for authentication).  I realize localhost is just an alias for <code>127.0.0.1</code> but for some reason I cannot get my application to run on <code>127.0.0.1</code>.</p>
  
  <p>I have gone into the project settings under the "Web" tab and changed <strong>Start Action > Start URL</strong> and <strong>Servers > Project URL</strong> both to <code>http://127.0.0.1:25436</code> and even went into IIS Express's <code>applicationhost.config</code> and changed the bindings from this:</p>
  
  <pre><code>&lt;bindings&gt;
      &lt;binding protocol="http" bindingInformation="*:25436:localhost" /&gt;
      &lt;binding protocol="https" bindingInformation="*:44300:localhost" /&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>&lt;bindings&gt;
      &lt;binding protocol="http" bindingInformation="*:25436:127.0.0.1" /&gt;
      &lt;binding protocol="https" bindingInformation="*:44300:127.0.0.1" /&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>I even tried putting the IP before the port like <code>127.0.0.1:25436:</code> as suggested by another article I read to solve this problem.</p>
  
  <p>When I start the project I get this problem:
  <a href="https://i.stack.imgur.com/0cON5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0cON5.png" alt="127.0.0.1 error"></a></p>
  
  <p>I can't figure out how to get around this.  Please help!</p>