Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How come I can ping back and forth between host and guest using VirtualBox, but I can't access from the host the web server installed in the guest. I'm using a host-only network.

Host Ubuntu 10.10 
vboxnet0 - 192.168.56.1
ping to self, works
ping to guest, works
access to web server in guest, FAILS

Guest Fedora 13
eth1 - 192.168.56.101
ping to self, works
ping to host, works
access to web server in host, works
share|improve this question
    
It would help if we knew OS type, application type (Apache2, yes but is it a LAMP or WAMP setup)... What about subnetting or alike ? More info is needed –  Entity_Razer Nov 24 '10 at 9:48
    
I chose host-only network because with NAT you must use port forwarding and I wanted to avoid that. Apparently port forwarding is needed with a host-only network too. –  givanse Nov 24 '10 at 17:31

3 Answers 3

up vote 6 down vote accepted

Check firewall settings and possibly access restrictions in httpd config on the guest.

share|improve this answer
    
Fedora comes with a firewall... I didn't know that... –  givanse Nov 24 '10 at 23:06

What I found fixed the issue for me was making sure that the windows VirtualHost-Only adapter was set to the .1 address for the ip range so my virtual box host only adapter was 192.168.58.20 but the ip for the Windows adapter is 192.168.58.1

share|improve this answer

Do you have a web proxy configured in your browser by chance?

I am also going out on a limb - can the virtual server access the local web server on itself? Is there a Linux firewall in place that is blocking access to port 80 from non-local hosts?

share|improve this answer
    
nop, netiher firefox or chrome use a proxy –  givanse Nov 24 '10 at 21:39

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.