Search code examples
network-programmingvirtual-machinevirtualization

Multiple IPs on Host Accessible from VM


I use Windows XP Mode to test sites for IE6 compatibility. I run several sites in my host machine's IIS service, each on a different local IP (127.0.1.0, 127.2.1.3, etc.), which is important because I need multiple local sites to be able to run in https simultaneously.

Since IE6 runs in a virtual instance of Windows XP, I can only hit one IP on the hose machine - its network address (192.168.x.x). Is there any way to "tunnel" or route IPs from the virtual instance to the host OS, such that if I pointed a virtual web browser to 127.1.1.3, it would hit the IIS site on the host machine which is bound to 127.1.1.3?

Thanks for any help!

Edit: I finally figured it out, and can't figure out why it took me so long to realize.

Solution: Setup a proxy server on the host OS. Point the virtual IE6 to the host proxy server. All requests will go through the proxy server and hit the various IPs/sites as if the virtual application were running on the host OS.


Solution

  • Setup a proxy server on the host OS. Point the virtual IE6 to the host proxy server. All requests will go through the proxy server and hit the various IPs/sites as if the virtual application were running on the host OS.