Debug website on host from virtual machine

Posted by Luchaguate on Stack Overflow See other posts from Stack Overflow or by Luchaguate
Published on 2010-05-04T23:17:56Z Indexed on 2010/05/04 23:28 UTC
Read the original article Hit count: 192

I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)

I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.

As an example, suppose I run my web application in visual studio on my host machine and its url is

http://localhost:62789/MyPage.aspx

Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about debugging