I just installed a fresh copy of Ubuntu Mate so with no tweaks (It has been a couple of years since I’ve tried Linux so kind of rusty) I just installed the LAMP server and want to host my own site. I can access it by putting localhost in my URL bar but I cannot access it from other computers. I believe I’m just supposed to use my ip address correct? I am running Ubuntu Mate on a virtual machine currently if that matters. Does anyone know what I need to do to properly launch my website?
Hi
Your VM will have an IP address in your local, virtual LAN.
That address is not the same as the address of your host in your LAN.
The address of your host in your LAN is not the same as your public IP address.
If you want your website to be visible from outside your LAN, you need to have a rule in your router to forward packets aimed at ports 80 and 443 to the address of your host in your LAN. On your host you then need to have rules to forward the same packets to the IP of your VM in the virtual LAN.
You will also need to make sure that you VM server is giving your VM a real address. Virtual Box for example has 5 (I think) different network settings. In that case you would need it to be set to Bridged mode so that in gets a regular LAN IP address.
Thanks. Wasn’t sure if it was the same IP or not but I found it. I got it working.
Thanks, I got it working now.