Setting localhost alias in IIS Express for Visual Studio
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
.