I currently have a PC running Visual Studio/IIS Express and I need to do some IE8 testing, which requires me to run a Hyper-V VM.

When I go into the Hyper-V VM, I can't seem to go to reach http://localhost:portnumber.

I guess I need to set up hosts for localhost, but I also can't seem to reach the IP address of the main PC either.

Can someone suggest some steps to follow to solve this? Thanks.

  • From within the VM, localhost is the VM, not the physical host machine... you'll need to configure the VM's networking correctly, and address the physical host by IP / hostname as if you were any other machine on the network. – Attie Mar 26 at 10:38

To access the host from the virtual machine you need to setup the virtual machine to use the correct network settings as well as updating the settings of you host system.

You can find a guide of how this might be done here:

Debugging IIS Express website from a HyperV Virtual Machine

The guide describes the necessary steps. Hope it helps.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.