Hello! Let's explore
Tap an island to jump there, or press Next.
WiFi: invisible waves
Drag the tablet (or tap anywhere) and watch the bars.
The Internet: roads between computers
Tip: tap a road to close it for construction ๐ง and watch the pieces find another way.
The Cloud: a far-away toy box
Tap a photo on the phone to send a copy up to the cloud.
Bossing the cloud computers
What a grown-up would type (pretend AWS PowerShell):
PS> _
Our home network: a little neighborhood
Tap who sends a message.
What's really happening:
Tap a device to startโฆ
Papa's game can live on our computer!
1. Which house?
2. Which door?
What's really happening:
Pick a house and a doorโฆ
For grown-ups: how this computer is hosting the game
- The server program.
server.pyis a tiny web server (Python's built-inhttp.server). It listens on port 8080 on every network connection the Mac has (0.0.0.0), and hands out files from its folder. - The address. Your router gave the Mac a private IP address on your WiFi (like 192.168.1.23) using DHCP. Every device in the house gets one, so they're all in the same neighborhood (the LAN).
- The request. The iPad opens
http://192.168.1.23:8080: IP address = which house, port = which door. The request goes over WiFi to the router, which delivers it to the Mac. - The reply. The server reads
index.htmlfrom disk and sends it back (HTTP 200 OK). From then on, everything you see runs inside the iPad's browser. The Mac only served the file. - localhost.
localhost(127.0.0.1) always means "this same computer". It works on the Mac, but on the iPad it would mean the iPad itself, which is why the iPad needs the Mac's real address. - Who can reach it. Only devices on your home network. The router doesn't let the outside internet in unless someone sets up port forwarding, so the game stays private to your house. Close the server window and it's gone.
- On pappaoctopus.com. The same file also lives in the cloud: it sits in an Amazon S3 bucket, CloudFront delivers it over HTTPS from AWS buildings near you, and Route 53 turns the name pappaoctopus.com into CloudFront's address.
Quiz time!
โญ Cloud Captain Certificate โญ
know how WiFi, the Internet and the Cloud work!
Signed, Papa the Octopus ๐
NeihNeih is visiting! ๐ด
Tap NeihNeih to say hi!
NeihNeih is exploring the forests in the mountains of Hawaii. Papa will tell you when he comes back!