Debugging IIS Express Sites on Mobile Devices with Visual Studio
Lee Timmins
11th Sep 2025
Comments
Step 1. Configure IIS Express for External Access
By default, IIS Express only listens on localhost. To make your site accessible from your LAN IP address:
- Locate the applicationhost.config file in your solution folder. It’s usually found under: .vs\foo\config\applicationhost.config.
- Open the file and find your site’s <bindings> section.
- Add a new binding for your machine’s local IP address (leave the existing bindings). For example:
<bindings>
<binding protocol="http" bindingInformation="*:11111:192.168.1.100" />
<binding protocol="https" bindingInformation="*:12345:192.168.1.100" />
</bindings>
Replace 192.168.1.100 with your computer’s LAN IP (you can find it with ipconfig).
This tells IIS Express to listen on both localhost and your LAN IP, making it reachable from other devices on the same network.