Open CMD or Powershell as administrator. Add a URL ACL entry for your new name on the port of your choice, e.g.
netsh http add urlacl url=http://windows.local:8080/ user=everyone
Note: windows.local:8080 can be substituted with the name and port of your choice
Open CMD or Powershell as administrator. Add an inbound firewall rule for this new port.
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in action=allow protocol=TCP localport=8080
Note: The IIS binding will have to be configured per project
If you're using IISExpress, edit your applicationhost.config file, typically found at your Documents\IISExpress\config\applicationhost.config. Find your site under sites, and add a binding to the port using your machine name, e.g.
<bindings>
<binding protocol="http" bindingInformation="*:8080:localhost" /> <!-- This will be here already -->
<binding protocol="http" bindingInformation="*:8080:windows.local" /> <!-- Add this -->
</bindings>
If you're using IIS, open IIS Manager, find your site under YourMachineName > Sites > YourSiteName. Right-click and select Edit Bindings.... Add a binding with the host name you selected in step 1, e.g. Type: http, IP address: All Unassigned, Port: 8080, Host name: windows.local. Click OK.
Startup IISExpress with Visual Studio or restart IIS from IIS Manager and hit your URL from a browser on your Mac/VM Host, e.g. http://windows.local:8080
First of all, you'll need your Windows IP address. In Windows in CMD or Powershell, type ipconfig and copy the IPv4 address.
Now open up your /etc/hosts file and add the following:
# Your IP address | Host name
xx.xxx.xx.x windows.local
http://stackoverflow.com/questions/3313616/iis-express-enable-external-request http://stackoverflow.com/questions/5442551/iisexpress-returns-a-503-error-from-remote-machines http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx