I\'m trying to define an alias to localhost in development ambient in Visual Studio 2013.
When I used previous versions of Visual Studio, I used the Visual Studio Develo
Since the linked URL from Jack's answer is currently not working, and the solution (at least for me) was covered in the answer to another question, I will repeat the answer here:
You can have multiple bindings set. Therefore, you can setup bindings for every external address you wish to serve on, and it will work:
<bindings>
<binding protocol="http" bindingInformation=":1904:" />
<binding protocol="http" bindingInformation=":1904:machineName" />
<binding protocol="http" bindingInformation=":1904:10.1.10.123" />
</bindings>
If you reach this page looking for a solution for VS2015+, the applicationhost.config
file you are looking for is no longer on documents\IISExpress\config
.
The new location is {solutiondir}\.vs\config\applicationhost.config
.
I encountered a similar error here, and it turned out that the solution could be found at: http://stonycreektechnologies.com/2011/03/15/iis-express-enable-remote-requests/
For me, this was just a case of running the command there (I used it for port 8080 and for the port for my project, 55968, just to be sure) and closing and reopening my project, editing my applicaitonhost.config file, and then changing the settings of the site through the visual studio gui.
The other thing to be careful of is that you may get multiple entries for your port number in the applicationhost.config file. This is bad, you only want the one, so you're safe to cull off the other entries with the same port.