tantony
(tantony)
1
I have a Python web app running on port 5000. I like to publish this on the internet as an actual website. Something like www.myproject.com. How can i do that? I know I can use Wix or other sites to host it. Right now the web server is running on a spare laptop in my house.
1 Spice up
Too big a thing for me to address fully at the moment but you’ll need a working knowledge of the following to name a few:
- Obtaining a static IP from your Internet provider (or DDNS)
- How to secure an Internet-facing server
- How to register a domain name
- How to point a domain name to your server
This may get you started. Disclaimer: I didn’t watch the video, it’s just what came up in a quick YouTube search. https://www.youtube.com/watch?v=b50hB7cfsfg
tantony
(tantony)
3
Thanks, I’m already doing that with port forwarding and DDNS.
But when I type in my public IP, I still have to add the port number like this.
myproject.ddns.net:5000
I’ll watch the video.
That’s the expected behavior. Unless you specify another port (in your case 5000) any web browser will try to connect http requests on port 80 by default.
You could forward all port 80 (external) requests to port 5000 (internal) of the server in your router’s config.
1 Spice up