Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect to host machine from within Virtual PC image

I am putting together a SVN demonstration using a WinXP Virtual PC image, and am unable to see my host machine from within the VPC guest OS.

This demo will be performed while disconnected from our LAN, so I installed the Microsoft Loopback adapter on my laptop. In the TCP/IP settings I manually set the IP address to 192.168.3.1 to avoid conflicts with our internal network. In the VPC image settings I set the Network Type to Microsoft Loopback Adapter and set the IP address to 192.168.3.2.

I cannot ping my host machine from the guest OS and vice versa. I've followed through several different how-to pages on this subject but still cannot determine why this isn't working. What am I missing here?

like image 218
polara Avatar asked Dec 12 '25 04:12

polara


2 Answers

It might just be because by default Windows XP Firewall blocks ping requests.

To enable pings do the following:

  1. Open Windows Firewall in the Control Panel
  2. On the General tab check Windows Firewall is On. If it's Off you're probably using another firewall and will need to configure that.
  3. On the Advanced tab click the Settings button under ICMP.
  4. Tick the box next to Allow incoming echo request.
  5. Click OK on the ICMP dialog.
  6. Click OK on the Wndows Firewall dialog.
like image 177
Dave Webb Avatar answered Dec 14 '25 22:12

Dave Webb


So your host machine's loopback is set to 192.168.3.1 (subnet 255.255.255.0, gateway 192.168.3.1) and your VM's network adapter is set to 192.168.3.2 (subnet 255.255.255.0, gateway 192.168.3.1)? They should be able to see each other, there's not much else to this setup.

I'd shake things up:

  • Install the VM additions, maybe the network driver that comes with the guest OS isn't cutting it.
  • Try a different subnet, maybe 192.168.22.1.
  • Disable your host machine's other network adapters for a bit, maybe packets are getting routed elsewhere.
like image 21
seisyll Avatar answered Dec 14 '25 22:12

seisyll



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!