locked
accessing website hosted from windows virtual pc RRS feed

  • Question

  • I have windows virtual pc installed on my windows 7. I am using it for testing my website for cross browser functionality.

    In my windows 7 i am developing the website in asp.net 4 and vs2010. In my virtual pc xp, i want to access the website that i host on my local iis or VS development web server. 

    Does anyone have any idea how to achieve this?

     

    Thanks

    Saarthak

    • Moved by Andreas Johansson Tuesday, August 16, 2011 8:16 AM TechNet Virtualization question (From:.NET Base Class Library)
    Tuesday, August 16, 2011 5:53 AM

All replies

  • 1. First your virtual PC must have a way to communicate with your local machine (either through LAN or internet)

    2. When you configure you iis, you will get an IP address (something like 190.230.0.5) and also a port number  (something like 8085). When you get that, you can access your website through somewhat like http://190.230.0.5:8085/default.aspx


    Please mark this post as answer if it solved your problem. Happy Programming!
    Tuesday, August 16, 2011 6:21 AM
  • Hi Avadesh, 

    1. First your virtual PC must have a way to communicate with your local machine (either through LAN or internet)

    >> I don't know how to achieve this. Windows virtual pc and my windows 7 are on the same machine. So, i dont think they may be needing an internet route or LAN to communicate to each other. there must be some configuration or setting that may be required to be done to allow the virtual machine XP to communicate to windows 7.

     

    2. When you configure you iis, you will get an IP address (something like 190.230.0.5) and also a port number  (something like 8085). When you get that, you can access your website through somewhat like http://190.230.0.5:8085/default.aspx

    >> yeah, got that

    Tuesday, August 16, 2011 6:29 AM
  • Yes. Alothough your Virtual OS is inside yourlocal machine, they are completely different OS. So, you must bridge a network between them. There was an option called bridging in VM but I don't know about Virtual PC. May be in options of Virtual PC you can do it.

     


    Please mark this post as answer if it solved your problem. Happy Programming!
    Tuesday, August 16, 2011 7:50 AM
  • These forums does not cover Virtual PC setup questions.

    Please use the TechNet virtualization forum for any Virtual PC questions.

    http://social.technet.microsoft.com/Forums/en-US/w7itprovirt/threads

     

    Tuesday, August 16, 2011 8:15 AM