Skip to content

Instantly share code, notes, and snippets.

@mdnmdn
Last active November 14, 2018 21:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mdnmdn/4271652 to your computer and use it in GitHub Desktop.
Save mdnmdn/4271652 to your computer and use it in GitHub Desktop.
Configure IISExpress on Win7 to listen on every interface (loopback and public)
1. authorize on http.sys: from cmd as admin:
netsh http add urlacl url=http://*:8080/ user=everyone listen=yes
2. open fw port/IISexpress
3. change applicationhost.config:
...
<binding protocol="http" bindingInformation="*:8080:" />
...
4. Run IISExpress
"c:\Program Files (x86)\IIS Express\iisexpress.exe" /config:applicationhost.config
Notes
=====
== acls command
# list all acls
netsh http show urlacl
# remove acl
netsh http delete urlacl url=http://*:8080/
# add acl for everyone use
netsh http add urlacl url=http://*:8080/ user=\Everyone
== IISExpress original config path
C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment