Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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):

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

share|improve this question
up vote 3 down vote accepted

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:

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

share|improve this answer
Yes, this has caught me before with CentOS - very annoying! – Linker3000 Jun 27 '11 at 20:17
+1 for you buddy! you belong to ServerFault world :) I am a developer so server stuff is not in top of my mind when it comes to IPTables, etc even though I know what it is. I digged through VMWare kb, support and ServerFault, none pointed this setting as far as my search goes. More power to you! – Thale Jul 1 '13 at 11:42

This is a firewall issue, so if you want to fix it quickly then temporarily stop iptables by giving the following command:

service iptables stop

Then check by running apache in host browser.

You can also add port 80 and 443 to iptables:

-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT

Do that before commit and restart service. This way you can keep the firewall running and allow these to be be pinged from outside.

share|improve this answer

This firewall issue can be fixed easily via webmin.

Just open


Then navigate to Networking → Linux Firewall. Then you should add a rule or edit one of predefined rules (like the one for 22 port) and save. At last click on Apply Configuration button.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .