Level 1 · Digital Foundations · Course 1.2 Networking and the Internet
Module 5: IP Addresses and Ports
Goal: understand how devices are found on a network (IP addresses) and how one computer runs many services at once (ports). You'll meet both constantly when you build and host apps.
You'll need: a computer with a terminal (Command Prompt on Windows, Terminal on Mac).
Lessons
- 1What an IP address is15–25 minutes✓
- 2IPv4 and IPv615–25 minutes✓
- 3Public and private addresses, and NAT15–25 minutes✓
- 4localhost15–25 minutes✓
- 5Ports, TCP and UDP15–25 minutes✓
🛠️Module practice: find your addresses
Write down:
- Your private IPv4 address (and IPv6 if you have one).
- Your public IP address, from a "what is my IP" search.
- Explain in one sentence why they're different.
- The result of
ping localhost. - The port your browser uses for
https://websites.
✅Module check
Explain in a few sentences, in your own words:
How does a message reach the right program on the right computer?
Show a good answer
A good answer mentions: the IP address finds the right computer (a public address across the internet, with NAT translating to a private address inside a local network); the port number then finds the right program on that computer, such as 443 for a secure website. TCP or UDP carry the data, TCP reliably and UDP quickly.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
