Accessing VM server within the Lan

Soldato
Joined
3 Jun 2005
Posts
3,281
Location
The South
Hi all,
I run a VM XP dev box running Wamp on a desktop system (Win7) and everything is hunky dory (can view dev sites fine, phpmyadmin, remote mysql etc). The issue i'm having is that i can't access Wamp on the lan from another system (in this case a laptop), however if VNC is enabled on VMWare Workstation then i can VNC to the VM XP from the laptop (and obviously the desktop) perfectly fine. Likewise i can ping the desktop system from the laptop fine as well.

The VM XP dev box is given the IP address 192.168.112.129 (dynamic) with a Gateway of 192.168.112.2. The host/desktop has the ip address 192.168.1.80 (static, gateway is the router), with two VMWare adaptors 192.168.241.1 and 192.168.112.1. The laptop has the IP 192.168.1.3 (dynamic from the router). Everything is on the same subnet (255.255.255.0).

I've turned off all firewalls (desktop system, VM XP and on the laptop - all using windows firewall) but nothing. Apache logs aren't showing that anything is being blocked/denied either.
I've tried to access wamp (via a browser) using all of the IP addresses but nothing, using 192.168.112.129 from the host system obviously works fine.

Has anyone got any solutions/thoughts? Am i right in thinking it's an issue of blocked ports rather than a routing (as VNC works fine etc)?

Much appreciated for any help :)
 
I'm assuming you've checked whether wamp is listening on port 80 etc. Can you access wamp with the host machine?

If you can get a VNC connection to the XP machine then you should be able to get to a website hosted from the same machine.
 
make sure you're using bridged networking. this will make the VM appear on your LAN as if it were a real machine.

then in the VM, give it an ip in the same range as your real pc (or if your router is dishing out ips via dhcp, then the VM will automatically get one anyway). i usually delete the 2 vmware virtual adapters as they're not needed for bridged networking.
 
make sure you're using bridged networking. this will make the VM appear on your LAN as if it were a real machine.

then in the VM, give it an ip in the same range as your real pc (or if your router is dishing out ips via dhcp, then the VM will automatically get one anyway). i usually delete the 2 vmware virtual adapters as they're not needed for bridged networking.

But given that he can VNC to this machine I'd assume accessing a http service would equally work.

(My thought was he is using a NAT'd connection, but on second reading that isnt the case.)
 
Back
Top Bottom