How can I make visual studio asp.net debugger to bind to all ipaddresses of my network instead of localhost? So I can debug under another circumstances.
For IIS Express, grant yourself permission to bind to both localhost and wildcard network adapters, and configure IIS Express to bind to them.
Step details: (they assume a port number of 5555 - use your actual port instead)
Run these commands from a command prompt as Administrator:
netsh http add urlacl url=http://localhost:5555/ user="NT AUTHORITY\INTERACTIVE"
netsh http add urlacl url=http://*:5555/ user="NT AUTHORITY\INTERACTIVE"
In %USERPROFILE%\Documents\IISExpress\config\applicationhost.config, add a wildcard binding to your site. The result should look like this:
<site name="..." id="...">
<!-- application settings omitted for brevity -->
<bindings>
<binding protocol="http" bindingInformation="*:5555:localhost" />
<binding protocol="http" bindingInformation="*:5555:*" />
</bindings>
</site>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With