Skip to content

Instantly share code, notes, and snippets.

@evilz
Created May 29, 2016 19:55
Show Gist options
  • Select an option

  • Save evilz/794d62af913613f40ae0c15c45bf0a93 to your computer and use it in GitHub Desktop.

Select an option

Save evilz/794d62af913613f40ae0c15c45bf0a93 to your computer and use it in GitHub Desktop.
IIS express Remote access

Tell IIS Express itself to bind to all ip addresses and hostnames. In your .config file. Typically: VS 2015: $(solutionDir).vs\config\applicationhost.config < VS 2015: %userprofile%\My Documents\IISExpress\config\applicationhost.config Find your site's binding element, and add

<binding protocol="http" bindingInformation="*:8080:*" />

Setup the bit of Windows called 'http.sys'. As an administrator, run the command: netsh http add urlacl url=http://*:8080/ user=everyone Where everyone is a windows group. Use double quotes for groups with spaces like "Tout le monde".

Allow IIS Express through Windows firewall. Start / Windows Firewall with Advanced Security / Inbound Rules / New Rule...

Program %ProgramFiles%\IIS Express\iisexpress.exe OR Port 8080 TCP Now when you start iisexpress.exe you should see a message such as

Successfully registered URL "http://*:8080/" for site "hello world" application "/"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment