I am using Ubuntu to host Apache2, MySQL and my website, and when I use my private IP address (10.0.2.15), I see my website! I want to know how I can “share” this address with others, so that they can get to my website, either using an IP address or a way to use a link to access it.
I tried changing my networking settings, but I do not know what to change it to!
Thanks, Ali
P.S. This is a virtual machine I am using, running Linux.
1 Answer
The address 10.0.2.15 is a private address and can't be reached from outside your network.
To make your server public to the internet you have to follow these steps:
Find your public IP. For example visit from the network this website
In the router that connects your network to the internet you have to open the port 80 and redirect it to the IP address of your server (
10.0.2.15).
This generic guide to open ports in a home router can help you.
keep in mind that your public IP couldn't be permanent. it depends on the ISP policies for management of their Public IP pool.
8