Access Apache2 Hosted Website from Outside of Local Network

by Paul Freeman   Last Updated October 20, 2019 01:01 AM - source

I'm running Apache2 on Ubuntu Server in a virtual machine on my host computer. The network attached to setting in Oracle Virtual Box is set to bridged.

I can see the test website on my local machine and local network. However, not from outside of my local network, which is what I'd like.

Apache2 is serving on port 80. I have also forwarded port 80 to the IP Address of the virtual machine. (Virgin Media Router).

The ufw firewall on Ubuntu is set to allow Apache2 through.

Really not sure what I'm doing wrong, or missing here. I'm somewhat new at this so help would be appreciated! I've read through hundreds of posts on here and can't find an answer. :(

Answers 1

If you router is a home modem/router it is by default not letting external connections in. You have to tell it to forward the port 80 to your local machine which will in turn forward it to your VM.

Note that running a server from your home isn't a very good idea, if you overlook something you can put all the machines in your household in jeopardy. Best use a server in the cloud. Virtual servers are quite cheap (mine: 1x2.40Ghz Xeon code, 1GB RAM, 25H disk: $5 a month).

October 20, 2019 00:14 AM

Related Questions

Using virtualbox server as a proxy

Updated April 05, 2017 18:01 PM

Installing Apache on Ubuntu: adjust the firewall

Updated November 06, 2017 18:01 PM

Telegram API and Local Intranet web application

Updated June 18, 2018 23:01 PM