Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 10.0.2.15 so when I try to access it in my web browser on i type : http://10.0.2.15:4444

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

EDIT: 127.0.0.1:4444 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
1  
If you are portforwarding+NAT rather than using bridged networking, you would be accessing this from the host on 127.0.0.1:4444 –  Paul Jul 4 '12 at 5:13
    
@Paul 127.0.0.1:4444 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, 10.0.2.15:80 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 10.0.2.15:80 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

1 Answer 1

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

 
discard

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.