Raspberry Pi (Linux) Web Server Setup HELP

May 19, 2018
2
0
10
I have a Raspberry Pi 3B+, that runs a reskinned version of Linux(Raspbian). I have been trying to get it to run a web server. So far, I was able to access the webpage in my own Local Network. However, I want anyone to access on another network.

I am new in this field, any advice would help!

Can someone please kindly guide me through how to make my webserver publicly accessible?
Router: TM-AC1900, ISP: Google Fiber
 
Solution
It is not recommended you run any form of web server until you really know what you are doing. The bad guys will almost immediately attack your server and try to gain control for whatever their purposes are. You really need to understand how to protect it, way too many people leave open servers exposed and they become nodes used to attack other machines.

Still all you need to do is port forward port 80 and 443 on your router to your server. You can then access the server by using your public ip address from remote locations.

Be aware many ISP block these ports because way too many people setup web servers that do it incorrectly. So the ISP just blocks the common ports. You then must run your web server on other ports...
It is not recommended you run any form of web server until you really know what you are doing. The bad guys will almost immediately attack your server and try to gain control for whatever their purposes are. You really need to understand how to protect it, way too many people leave open servers exposed and they become nodes used to attack other machines.

Still all you need to do is port forward port 80 and 443 on your router to your server. You can then access the server by using your public ip address from remote locations.

Be aware many ISP block these ports because way too many people setup web servers that do it incorrectly. So the ISP just blocks the common ports. You then must run your web server on other ports. Pretty much when you are skilled enough to understand how to use non standard ports you have enough basic knowledge to secure the web server.

Nobody really runs web servers locally. It is much simpler to use a hosting site that sets up virtual servers. Many you can get very basic web servers for free.
 
Solution