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 localhost
and runs just fine. However, one of the external API's I'm calling requires the callback of my application redirect to 127.0.0.1
instead of localhost
(it uses the OAuth2 flow for authentication). I realize localhost is just an alias for 127.0.0.1
but for some reason I cannot get my application to run on 127.0.0.1
.
I have gone into the project settings under the "Web" tab and changed Start Action > Start URL and Servers > Project URL both to http://127.0.0.1:25436
and even went into IIS Express's applicationhost.config
and changed the bindings from this:
<bindings>
<binding protocol="http" bindingInformation="*:25436:localhost" />
<binding protocol="https" bindingInformation="*:44300:localhost" />
</bindings>
to this:
<bindings>
<binding protocol="http" bindingInformation="*:25436:127.0.0.1" />
<binding protocol="https" bindingInformation="*:44300:127.0.0.1" />
</bindings>
I even tried putting the IP before the port like 127.0.0.1:25436:
as suggested by another article I read to solve this problem.
When I start the project I get this problem:
I can't figure out how to get around this. Please help!
netsh http
. – Glinys