If you are running virtual machine on windows virtual PC and you want to connect
the host to the guest, for example: your virtual machine hosts TFS server and you
want your VS on the host to connect to it. You can use Microsoft loopback adapter to
create virtual network that connects the computers.
Here is great post (A lot of pictures ) how to install it on windows 7.
In virtual machine settings choose the loopback as the network adapter.
configure the network adapter on the host and on the guest to use virtual IP in the same
range (220.127.116.11 & 18.104.22.168 worked for me). Now they should connect each other.
Pinging from host to guest worked but pinging back from guest to the host returned
time out. After searching I found the problem is that Windows 7 declares this network
connection as undefined public network and blocks connections from it, but there is no
way to change it to home or work network because this option is unavailable
After spending a lot of time I found this great post that describes the same problem
on vista and a way to solve it: set your loopback adapter connection (host) default
gateway to the IP of the virtual machine then the network will be defined and you can
change it to home or work .
Plus another bonus that you can change its name to meaningful name…
Worked for me !