Windows – Connect to CentOS httpd server running on VMware Player

64-bitapache-http-servercentosvmware-playerwindows 7

I have a virtual LAMP machine set up with 32-bit CentOS 5.5 running on VMWare Player. It's being hosted on a Win 7 64-bit machine running a bridged network connection. Everything seems OK on the guest OS, as I can navigate to http://localhost and get the CentOS Apache 2 test page. However, I can not access the web server from a browser on the host OS through the IP address of the guest OS, which is the point of setting this up in the first place. I can successfully ping from host to guest (there is no firewall on the guest OS) too.

The image file for CentOS was downloaded from here (only used part 1 of 2):

http://virtual-machine.org/vmware-image-centos-55-i386-download

So is this something weird in the Apache conf or some hidden setting I'm missing in VMWare Player?

Best Answer

I ran into this recently, and it turned out to be a firewall issue. The default iptables blocked any incoming port (except ssh).

Here's an intro on iptables if you're not familiar with it: http://wiki.centos.org/HowTos/Network/IPTables

And you need to make sure to at least allow port 80 incoming.

Related Question