Connecting to Visual Studio debugging IIS Express server over the lan

Update I made a video that better describes the process, https://youtu.be/5ZqDuvTqQVs If you are using Visual Studio 2013 or above, make sure you run it as an administrator for this to work. Open the %USERPROFILE%\My Documents\IISExpress\config\applicationhost.config (in VS2015 it may be $(solutionDir)\.vs\config\applicationhost.config) file. Inside you should see something like this: <site name=”WebSite1″ id=”1″ serverAutoStart=”true”> <application … Read more

Ngrok configure multiple port in same domain

Yes, it is possible using multiple simultaneous tunnels, within the same hostname ! All you need to do, is to declare them on your configuration file, like this: authtoken: 4nq9771bPxe8ctg7LKr_2ClH7Y15Zqe4bWLWF9p tunnels: first-app: addr: 50001 proto: http hostname: example.ngrok.com host_header: first-app.example.ngrok.com second-app: addr: 50002 proto: http hostname: example.ngrok.com host_header: second-app.example.ngrok.com And run them with: ngrok start … Read more

Authentication issue when debugging in VS2013 – iis express

I had just upgraded to VS 2013 from VS 2012 and the current user identity (HttpContext.User.Identity) was coming through as anonymous. I tried changing the IIS express applicationhost.config, no difference. The solution was to look at the properties of the web project, hit F4 to get the project properties when you have the top level … Read more

Configure IIS Express for external access to VS2010 project

1 After editing applicationhost.config file (located in the IISExpress folder in your documents), your site bindings should look like below: <bindings> <binding protocol=”http” bindingInformation=”*:8080:*” /> </bindings> Bindings consist of three parts. Firstly an IP address or list, or as in this case, a wildcard. Secondly the port number, and thirdly a hostname, or list, or … Read more

How to solve ERR_CONNECTION_REFUSED when trying to connect to localhost running IISExpress – Error 502 (Cannot debug from Visual Studio)?

Try changing the port number in your project? Project Properties → Web → Servers → Project Url: Don’t forget to click Create Virtual Directory, or reply “Yes” to the prompt for creating virtual directory after you change your port number! (Thanks Connor) Note: I’m a little reluctant to post this as an answer, as I … Read more

IISExpress Log File Location

1 . By default applicationhost.config file defines following two log file locations. Here IIS_USER_HOME would be expanded as %userprofile%\documents\IISExpress\. <siteDefaults> <logFile logFormat=”W3C” directory=”%IIS_USER_HOME%\Logs” /> <traceFailedRequestsLogging directory=”%IIS_USER_HOME%\TraceLogFiles” enabled=”true” /> </siteDefaults> You can update above directory paths to change the log file locations. 2 . If you are running IIS Express from command line, you can use … Read more