How Computers Talk to Each Other
The internet isn't a cloud โ it's real cables, agreed rules, and messages broken into little packets that hop across the world. The basics are simpler and more elegant than they sound.
When you load a page or send a message, your computer talks to another computer that might be on the other side of the planet. It feels instant and magical, but the underlying ideas are refreshingly concrete: real cables and radio, agreed rules (protocols), and data chopped into little packets that hop from machine to machine. This session demystifies the internet without the jargon.
Packets, addresses and rules
To send data across a network, computers break it into small packets, label each with a destination address, and follow shared protocols - rules both sides agree on - so the pieces arrive and reassemble correctly.
| Idea | What it is |
|---|---|
| Packet | A small chunk of the data, sent separately |
| IP address | A computer's number on the network |
| Protocol | Agreed rules for the conversation (e.g. HTTP) |
| DNS | The 'phone book' turning names into addresses |
Your message is split into packets, each finds its own way across many machines to the destination, and they're reassembled at the other end. If some go missing, the rules say to resend them. It's a bit like mailing a book one page at a time in numbered envelopes.
Clients, servers, and the web
Most internet interactions follow a simple pattern: a client (your device) asks, and a server (another computer) answers.
A network of agreements
What makes it all work is that everyone follows the same open agreements - which is exactly why any device can talk to any other.
| When you... | Roughly what happens |
|---|---|
| Type a web address | DNS finds the server's IP address |
| Hit enter | Your browser sends an HTTP request |
| The page loads | The server responds with the files |
| Send a message | It's split into packets, routed, reassembled |
No single company runs the internet; it works because of shared protocols anyone can use. That openness is why it grew to connect the whole world - and why you'll meet these same ideas (requests, responses, addresses) the moment you build anything online.
Cables, packets and agreements
- Packets - data is split into small labelled chunks that travel independently.
- Addresses & DNS - every computer has an IP address; DNS turns names into them.
- Protocols - shared rules (like HTTP) let any device talk to any other.
- Client-server - your device requests; a server responds. That's most of the web.
๐ฏ Key takeaways
- The internet is real cables/radio plus shared rules - not a magic cloud.
- Data is split into packets, each labelled with a destination address and routed independently.
- Protocols (like HTTP) are agreed rules; DNS is the phone book turning names into IP addresses.
- Most of the web is client-server: your device requests, a server responds.
Frequently asked
Why is data broken into 'packets' instead of just sent all at once?
Breaking data into packets makes networks far more robust, efficient and fair - it's one of the internet's foundational ideas. If you sent a whole large file as one unbroken stream, a single glitch anywhere along the way would ruin the entire transfer, and that one conversation would hog the connection while it ran. Splitting the data into many small packets solves both problems. Each packet can take its own route to the destination, so if one path is congested or broken, packets can go around it. If a packet gets lost or corrupted, only that small piece needs resending, not the whole file. And because everyone's packets are interleaved, many conversations share the same cables smoothly rather than one monopolising it - your download and someone else's video call take turns packet by packet. The packets carry numbering so the receiving computer can reassemble them in the right order even if they arrive jumbled or out of sequence. It's like mailing a book one numbered page at a time: more resilient (lose one page, resend just that page), more flexible (pages can travel different routes), and fairer (the post handles everyone's pages together). This packet-switching design is a big reason the internet scales to billions of devices.
What actually is a 'server' - is it a special kind of computer?
A server is less a special kind of machine and more a role a computer plays: it's a computer that waits for requests and responds to them, providing something to other computers (the clients) that ask. When you load a web page, a server somewhere is running software that listens for 'please send me this page' requests and answers them with the page's files. Physically, servers are often powerful computers in data centres - built to be reliable, always-on, and to handle many requests at once - but the defining thing is the role, not exotic hardware. In fact, an ordinary laptop can act as a server if it runs software that responds to requests (developers do this all the time to test their websites locally), and the same powerful machine could be a client when it, in turn, requests something from another server. So 'client' and 'server' describe who's asking and who's answering in a given interaction, not two separate species of computer. This client-server pattern - one side requests, the other responds - underlies most of what happens online, from web pages to apps to sending messages, and you'll work directly with it the moment you start building anything for the internet.
Related lessons
From Code to Running Program
You write Python; the CPU only understands tiny binary instructions. Something has to bridโฆ
How Computers WorkThe Whole Stack: Transistor to App
Put it all together and something beautiful appears: layer upon layer, each hiding the comโฆ
Building with the Larz StackWhat the Larz Stack Is (and Why Zero-Dependency)
Modern software drowns in dependencies โ hundreds of packages you never read, each a risk.โฆ