Are you a .NET developer building mobile web applications? Have you ever been frustrated by the fact that there’s no easy way to enable IIS Express to accept connections from remote devices?
Follow the following steps to make your life easier:
- Download and install ngrok or use its NPM wrapper (very handy if you’re already using NodeJS) ngrok npm
- Download and install iisexpress-proxy by using NPM and NodeJS
npm install -g iisexpress-proxy
- Open two (2) PowerShell (command prompt) windows
- In one window, run
iisexpress-proxy 55708 to 3000(assuming 55708 is the IIS Express port provided by VS)
- In second window, run
.\ngrok.exe http 3000
- Open the public URL provided by
Hope it’s easy for you as this steps above!