A Server to Call My Own: Opening the Door to the World
- 1A Server to Call My Own: The Very Beginning
- 2A Server to Call My Own: Opening the Door to the WorldThis article
The second post, written in 2025. In 2026 I fixed one important thing. The original had you start the server in your home folder, which puts your entire home directory on the internet. Now it only serves one small folder made just for it. Everything else is the same as before.
The Foundation of Your Digital Castle
So, we’ve gathered all our shiny hardware parts! Now, where should our little digital home actually live? On a traditional, cozy Windows cottage? A super-geeky and customizable Linux treehouse? Or a fancy, money-consuming macOS villa?
Honestly, any of these are perfectly fine for a beginner, and you can totally use them for your homelab adventure. It’s your world, so you make the rules!
But! The main character I want to introduce you to today is the amazing Proxmox Virtual Environment. Ooooh, that sounds super technical, right? Don’t worry! Think of it like a magical piece of land. On this land, you can build a Windows house, a Linux house, and even a macOS house, and they can all live together as happy little neighbors! It’s the perfect, reliable foundation for all the other fun things we want to build.
You can follow the official guide to get your own little plot of Proxmox land ready. Or, if you prefer, just stick with your favorite Windows, Linux, or macOS for now. You are the boss of this adventure!
The system is just the ground our digital nest is built on, so we won’t spend too much time here. If you’re not sure how to install an operating system, YouTube has tons of super helpful videos. I really, really recommend checking them out!
Let’s Open the Doors to Your Digital Home
Okay, so you have your internet connection, and your ISP has handled all the boring stuff. How about we do something super exciting? Do you wanna host a tiny, simple website and show it to the world in, like, 5 minutes? Let’s gooooo!
First things first… you know what system your computer is running, right? Hehe, just kidding!
For my Windows 10/11 Pals
-
Summoning a Little Magic with Python
-
First, press the
Winkey and theRkey together on your keyboard. In the little box that pops up, typepowershelland pressEnter. This opens our magical command window! -
Now, let’s chant our first spell. Copy and paste this into the PowerShell window:
winget install Python.Python.3.13and pressEnter. This tells your computer to install Python for us! (A little note: Python versions move fast and some scripts are picky about them. If you want a different version, just change3.13to the one you want.) -
Super Important! Close the PowerShell window, and then open a brand new one. This lets our computer know about the new magic we just installed.
-
Before we cast the server spell, let’s build a tiny room for it to live in. Copy these lines into PowerShell one by one:
Terminal window mkdir $HOME\my-first-sitecd $HOME\my-first-siteSet-Content index.html '<h1>Hello from my little server!</h1>'Why bother? Python’s little server shows everything in the folder you start it from, and in a minute we’re putting it on the internet. Start it in your home folder and the whole world can browse your documents, your browser data, even your SSH keys. Eek! So our server gets its own little room with just one page in it.
-
Now type
python -m http.server --bind 127.0.0.1and pressEnter. The--bind 127.0.0.1part means only your own computer can talk to it directly, not everyone else on your Wi-Fi. You should see a message likeServing HTTP on 127.0.0.1 port 8000. If you see that… Tada!
-
-
Visiting Your Creation
- See that
8000in the message? That’s the secret door number to your new server! Let’s go visit it. Open any web browser and go to this address:http://127.0.0.1:8000. - What do you see? Aha! It’s your very first web page, saying hello! That’s the
index.htmlwe just made, and it’s the only thing in that little room.
- See that
-
The Secret Passageway: Cloudflare Tunnel
- Let’s install our secret ingredient! Open a new PowerShell window and type this spell:
winget install Cloudflare.cloudflared, then pressEnter. - Once that’s done, it’s time for the final enchantment! Open a new PowerShell window, type:
cloudflared tunnel --url http://127.0.0.1:8000 - Give it about 10 seconds to work its magic… have you seen a bunch of text pop up with a special
trycloudflare.comlink?
2025-10-04T19:05:45Z INF Requesting new quick Tunnel on trycloudflare.com...2025-10-04T19:05:48Z INF +--------------------------------------------------------------+2025-10-04T19:05:48Z INF | Your quick Tunnel has been created! Visit it at: |2025-10-04T19:05:48Z INF | https://gem-saw-passed-equilibrium.trycloudflare.com |2025-10-04T19:05:48Z INF +--------------------------------------------------------------+2025-10-04T19:05:48Z INF Initial protocol quic2025-10-04T19:05:48Z INF Registered tunnel connection connIndex=0 location=yyz06 protocol=quic - Let’s install our secret ingredient! Open a new PowerShell window and type this spell:
-
Say Hello to the World! Go on, copy that link and open it in your browser! What’s on the screen? Yes! It’s your little hello page! You haven’t closed the Python window, right? lol. It’s now visible to anyone in the world who has that secret link. You did it!
-
When you’re done showing off, press
Ctrl + Cin both windows. That closes the door again: no Python server, no tunnel, nothing left open. Don’t leave it running “just in case”!
For my macOS Friends
- Summon Python
-
Open your
Terminal. (PressCmd + Space, typeTerminal, and hitEnter). -
Just like on Windows, give the server its own little room first, so it never shows the world your home folder:
Terminal window mkdir ~/my-first-site && cd ~/my-first-siteecho '<h1>Hello from my little server!</h1>' > index.html -
Chant this spell:
python3 -m http.server --bind 127.0.0.1 -
Tada! That’s it! Your little server should be running. You can now visit
http://127.0.0.1:8000in your browser to see it.
-
- Getting Your Magic Cauldron: Homebrew
- Your Mac has a super cool magic cauldron called Homebrew that can get you almost any tool you need! First, let’s open a new
Terminalwindow (leave the Python one running!). PressCmd + Nwhile Terminal is in front. - Check if you already have Homebrew by typing
brew --version. If you see a version number, you can skip to the next step! If not, just copy this whole spell and paste it into your Terminal to install it:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - It might ask for your password. Don’t worry, it’s safe!
- Your Mac has a super cool magic cauldron called Homebrew that can get you almost any tool you need! First, let’s open a new
- Opening the Tunnel!
- Type
brew install cloudflaredand pressEnter. - And for the final magic trick, type:
cloudflared tunnel --url http://127.0.0.1:8000 - After a few seconds, you’ll get your very own special
trycloudflare.comlink. Share it with a friend and show them your magic! - All done? Press
Ctrl + Cin both windows to close the door again.
- Type
For my Linux Adventurers
For all the Linux wizards out there, I have a feeling you might already know this little trick! The steps are super similar to the Windows ones, and I totally believe in you! You got this!
But… What Was That Magic All About?
So why did we go through all that trouble? Why did I design this little magic trick for you? Here’s the secret.
Think of your home’s router as a very strict but well-meaning castle guard. Its job is to protect all the devices in your home (your computer, your phone) from scary things on the internet. It gives all your devices a secret, internal IP address that only people inside the castle can see.
The problem is, this guard is SO good at its job that when a friendly visitor from the outside world tries to visit your new Python website using your public IP address, the guard just says “NOPE!” and slams the door. It’s a very common problem for everyone!
So, how did Cloudflare Tunnel work? What was its magic?
Well, the Cloudflare Tunnel is like a secret royal messenger! Instead of trying to break down the castle gate from the outside, the messenger starts from inside your castle (your computer) and creates a secure, secret tunnel that leads out to the world. Anyone with the secret address (that trycloudflare.com link) can give a message to the messenger, who then safely brings it back to your server inside.
The grumpy castle guard never even has to open the main gate! Isn’t that clever? (´-ω-)`
Magical Conclusion
Look at you! You just summoned a little web server from thin air with a Python spell, and then you opened a magical portal for the entire world to see using Cloudflare Tunnel! You should be super proud of yourself!
Now, this “quick tunnel” was a super fun party trick, right? It was like shouting “hello!” to the entire world from our digital doorstep, and it was the perfect way to get our first taste of success! But what if you want to create a private, cozy space just for your devices to talk to each other, without letting the whole world peek in?
So later on I learned a whole new kind of magic called Tailscale. Instead of opening a big door to the public, Tailscale helps us build a secret, magical network just for our own devices. It’s like creating a private little clubhouse where your laptop, phone, and new server can all whisper secrets to each other, no matter where they are in the world! And with its own special spell, tailscale serve, we’ll see how easy it is to share services inside our exclusive club.
A little spoiler from a year later: these days almost all the services at home sit behind that private network, and only a handful of necessary doors are still open to the public internet. Going from “opening the door to the world” to “leaving the door open only for my own people” made me feel safer than building the server itself ever did.
Thank you for being such a wonderful magic apprentice today! See you next time! (´-ω-)`
Share Article
If this article helped you, please share it with others!




