VirtualBox VM running web server not accessible via external IP

Posted by mwigdahl on Super User See other posts from Super User or by mwigdahl
Published on 2014-05-27T21:42:18Z Indexed on 2014/05/28 3:35 UTC
Read the original article Hit count: 262

I have a Windows 7 machine running VirtualBox with an Ubuntu guest. The guest has a Bitnami LAMP stack installed. I have the guest configured for Bridged networking, and I can access the guest web server just fine from other machines on my LAN using the guest's IP.

I'm trying to configure port forwarding so that I can access the web server from outside my LAN. (The router is a 2WIRE model as I'm on ATT's UVerse). I've set up port forwarding for ports 80 and 443 to the guest's IP in a similar manner to how I had them set up for my previous, physical web server, which worked just fine.

However, I cannot seem to access the new, virtual web server using my external IP on the forwarded port.

I suspected Windows Firewall issues on the host, but disabling it didn't solve the issue. Anyone have advice on what I should try next?

EDIT: I've now attempted disabling the firewall on the guest with sudo ufw disable -- that doesn't seem to help either. However, after checking the router's port forwarding in more detail I may see the problem. My VM is named "linux" and in the router's configuration pages it shows up inconsistently. Sometimes it reports with a valid LAN IP and other times it doesn't show up with any IP. Even when it shows the correct IP the router indicates that it is disconnected.

Could this be an indication that the 2WIRE router doesn't play well with VirtualBox's bridged networking mode?

© Super User or respective owner

Related posts about ubuntu

Related posts about router