I have a test ASP.NET MVC3 application developed in VS2012. When I start debugging the app is accessed from the host machine via the request to http://localhost:
How to avoid running Visual Studio as an administrator
Using both Garret's and @shangkeyun's answer you can achieve connecting to the running website without needing to run Visual Studio as an admin user:
%USERPROFILE%\My Documents\IISExpress\config\applicationhost.configname=MySiteName item in the section. You should now have two lines with binding.It should now look like this, assuming the port is 12345:
Enable non-admin to bind to port
netsh http add urlacl url=http://*:12345/ user=Everyone
EDIT 2019: gregmac added a step to whitelist the VS instance. I never needed this, but listing it anyway:
netsh advfirewall firewall add rule name="IISExpress visualstudio app" protocol=tcp localport=12345 dir=in action=allow