Papa's Internet Ocean

Hello! Let's explore

Tap an island to jump there, or press Next.

WiFi: invisible waves

Living room Kitchen Garden Router ๐Ÿคฉ

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

Cloud computers Your phone New tablet

Tap a photo on the phone to send a copy up to the cloud.

Bossing the cloud computers

Papa's cloud building (AWS) People everywhere

What a grown-up would type (pretend AWS PowerShell):

PS> _

Our home network: a little neighborhood

Router the mail carrier ๐Ÿ“ฌ

Tap who sends a message.

What's really happening:

Tap a device to startโ€ฆ

Papa's game can live on our computer!

http://? iPad Router ๐Ÿ“‚ shelf: index.html = the game Our computer (the server)
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
  1. The server program. server.py is a tiny web server (Python's built-in http.server). It listens on port 8080 on every network connection the Mac has (0.0.0.0), and hands out files from its folder.
  2. 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).
  3. 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.
  4. The reply. The server reads index.html from 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.
  5. 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.
  6. 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.
  7. 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!