- Decide on a subdomain to use with ngrok. This makes the whole process easier.
- Open up a Command Prompt in Administrator mode and run the following command to register the URL with HTTP.sys replacing "modernie" with your subdomain and ##### with your VisualStudio/IISExpress application's port.
netsh http add urlacl url=http://modernie.ngrok.com:#####/ user=everyone
- Edit your applicationhost.config. The easiest way to is start up the site and right-click the IISExpress icon in the System Tray. Click "Show All Applications" and select your website running at
localhost:#####
. Click the path next to "Config" to open the file in an editor. - Search for you site's
<bindings>
configuration. The easiest way is to search for*:#####:localhost
, which should bring you to the<bindings>
section for your site. Edit them to include the following: