Monday, November 30, 2009

Making IE6 from Virtual XP Mode access host IIS sites

Need to setup the Microsoft Loopback adapter.
  1. Install the loopback adapter on Windows 7. Some more info here.
  2. Configure IPv4 settings on the loopback adapter on the host. A quote from this thread:
    "To be able to communicate between the host and guest, give both the loopback adapter on the host and the NIC in the vm IP addresses which are in the same subnet. For example you could make them 192.168.21.1 and 192.168.21.2 with netmask of 255.255.255.0."
    My settings on my host has a static IP Of 192.168.131.200 and submask 255.255.255.0.
  3. On the virtual pc, set 2 network adapters, one for Shared NAT, the 2nd for the Loopback Adapter.
  4. On the virtual pc, set the loopback connection's TCP/IP properties to use a static IP.
    My settings on my virtual pc has a static IP of 192.168.131.201 and submask 255.255.255.0.
I can now access host sites on my virtual pc using the host's loopback IP (e.g., http://192.168.131.200/mysite).

[When I tried VirtualBox, I didn't need to do all that at all (I realized this after many hours of frustrating firewall blockage). Just set the vm's network card to NAT, and that's it. No need to connect to the loopback adapter.]

1 comment: