I'm attempting to test a website I have running in a local IISExpress instance with some other machines / devices on my local network. I am running Win7 Pro.
When I first attempt to browse to my machine from another machine on my local network segment, I get a 400 error: Hostname is invalid.
I understand that I need to grant remote access to the ACL with a command on the elevated command prompt like:
netsh http add urlacl url=http://mymachinename:50333/ user=everyone
Now I get a 503 service is unavailable error.
Windows Firewall is currently shut off, and I am able to browse my local IISExpress instance with the address http://localhost:50333
What is the final piece to this configuration puzzle?
It looks like you are missing a binding information entry in applicationhost.config file.
Open your applicationhost.config file. Possible locations are:
%userprofile%\Documents\IISExpress\config\applicationhost.config
$(solutionDir)\.vs\config\applicationhost.config
(VS2015)iisexpress.exe
to be sure.Locate your WebSite entry and add following binding with your machine name.
Restart IIS Express
Nothing worked for me. Finally I found iisexpress-proxy
See my answer https://stackoverflow.com/a/33623399/631527
Another solution is
ngrok
After wasting more than 3h on such a full subject I decided to share my setup with you. My configuration is Visual Express 2012 for Web update 4 on windows 8. This was my first come back to MS VS since studies (at least 8 years) and now I'm sure that linux rules. On django this kind of setup took me 10min of searching documentation.
turn off firewall for testing
setup bindings in my case local address is localIP=192.168.1.102 (because links can not contain nonnumeric domain, use it below instead of mylocaldomain.com, see stackoverflow policy) in
Documents\IISExpress\config\applicationhost.config
add autorun for ISS Express start service automatically
Add some weird rules to http server (I still do not know if this is nesseary)
run IISExpress manually not from VS IDE
http://mylocaldomain.com:53351
if it is working then we can add firewall ruleadd firewall rule
set remoteip to any if you want to access you server from outside world if you want to access for local network use localsubnet
start firewall
check again if everything is working on local and public ip
Wish you luck
Rafal
Regarding Anthony Rizzolo's answer: in Windows 8.1, I had to type like this:
For example: