The Big Idea


When you play a multiplayer game online, your computer isn't directly talking to your friend's computer. Instead, everyone connects to a central computer called the server. Your computer — the client — sends your actions to the server, and the server sends back what everyone else is doing.

It's like having a referee in the middle who keeps track of everything and makes sure the game is fair for all players.

REAL-WORLD ANALOGY
Think of a group chat. You don't send your message directly to each friend's phone — you send it to the app's server, and the server delivers it to everyone in the group. A multiplayer game works the same way, just much faster, sending updates dozens of times per second.

How It Works — Step by Step


Click through to see what happens when Player 1 presses the attack button in a multiplayer game.

MULTIPLAYER GAME — DATA FLOW
SERVER Game World · Rules · State PLAYER 1 🎮 Client Waiting... PLAYER 2 🎮 Client Waiting... PLAYER 3 🎮 Client Waiting... Player action Server processing ⸺ INTERNET ⸺
Step 0 / 6
Press NEXT to start the walkthrough

⏱ Ping & Latency


The time it takes for your action to travel to the server and back is called latency (or ping). It's measured in milliseconds (ms). Lower is better — high ping means your character moves with a delay and the game feels sluggish.

LATENCY SIMULATOR

Pick a scenario to see how distance and connection type affect your ping

--ms
Select a scenario below
Ping
WHY IT MATTERS
At 12ms ping, your attack lands instantly. At 250ms, there's a quarter-second delay — you pressed the button, but on everyone else's screen, your character is still standing still. That's why competitive gamers care so much about their ping.

Who Does What?


The client and server each have specific jobs. The server is the "boss" — it has the final say on what's really happening in the game.

🎮 CLIENT (Your Computer)
Shows the game graphics on your screen
Reads your keyboard & mouse input
Plays sound effects & music
Sends your actions to the server
Receives updates from the server
Predicts movement to feel smooth
🖥️ SERVER (Central Computer)
Stores the real game state
Validates every player's actions
Prevents cheating & hacking
Calculates combat & physics
Sends updates to ALL players
Decides what really happened
WHY THE SERVER IS BOSS
Imagine if each player's computer decided on its own whether an attack hit. Player 1 might say "I hit you!" while Player 2 says "No, I dodged!" With a central server making the call, everyone gets the same answer — the game stays fair.

Client-Server Is Everywhere


It's not just games — almost everything you do online uses client-server technology.

🎮Fortnite100 players connect to Epic's servers for each match
🌐Web BrowsingYour browser (client) requests pages from web servers
📱InstagramThe app (client) fetches posts from Meta's servers
🎵SpotifyThe app streams music from Spotify's cloud servers
📧EmailYour mail app talks to a mail server to send and receive
☁️Google DocsYour edits sync through Google's servers so everyone sees changes live
🎥YouTubeVideos are stored on Google's servers and streamed to your device

Key Vocabulary


Client
The device or program that requests information — your computer, phone, or game app
Server
A powerful computer that stores data, runs game logic, and responds to client requests
Latency / Ping
The round-trip time (in milliseconds) for data to travel from client to server and back
Packet
A small chunk of data sent over the internet — like a digital envelope containing your action
Bandwidth
How much data your internet connection can carry per second — like the width of a highway
Tick Rate
How many times per second the server updates the game world (e.g. 64 tick = 64 updates/sec)
Game State
A snapshot of everything happening in the game — all player positions, health, items, scores
Client-Side Prediction
When your client guesses what will happen next so the game feels smooth while waiting for the server
Lag
Noticeable delay caused by high latency — your character freezes or teleports
Data Center
A building full of servers, often in multiple locations around the world, to reduce latency