Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 setup and installed a CentOS6 webserver on a virtualbox.

Already setup port-forwarding of port 4444 to 80 so that I can access it and even disabled Win7 firewall.

I think that probably the problem is in apache httpd so I install lynx and I can view the test.html I created. But I can't access it in the host browser.

ifconfig says the guest ip is so when I try to access it in my web browser on i type :

I don't know what's wrong with my setup

EDIT: doesn't work either

EDIT: Switched network type to bridged networking, still has windows firewall disabled, removed port-forwarding setting on virtualbox and I still could not access the web server. :(

share|improve this question
If you are portforwarding+NAT rather than using bridged networking, you would be accessing this from the host on – Paul Jul 4 '12 at 5:13
@Paul still doesn't work – MegaNairda Jul 4 '12 at 5:37
It sounds like the Linux server is running on 80 and you're forwarding that to 4444 on the Windows host so you can access from other machines? If so, on the host machine should work, and host-machine-LAN-IP:4444 should work elsewhere on your physical network. Any particular reason for not using bridged networking? – Vickash Jul 4 '12 at 5:55
@Vickash doesn't work either. I just simply want to access the web server on my host PC. I have now switched to bridged networking. Guest OS has internet, but still could not access it. – MegaNairda Jul 4 '12 at 6:19
If you have switched to bridged networking, then the IP address on the server should be different, and now reside in the same subnet as your host (if it did prior to the switch, then that was probably the reason it didn't work - natted networks are on their own subnet). Can you ping it? – Paul Jul 4 '12 at 6:23
up vote 0 down vote accepted

Finally found the cause. Apparently, CentOS 6 iptables block httpd port 80 outside by default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.