How it works · 15 of 36 Foundation
What are a client and a server?
One asks, the other answers
Client and server: A client is the program that starts the conversation and asks, like the food app on your phone; a server is a program that waits for requests and answers them. They are roles, not kinds of machine.
Loading the animation…
Say it like this A client is the program that asks, like the app on your phone; a server is the program that waits and answers; and the same computer can be either, depending on who's asking whom.
Under the hood — for builders
- Real case: one page, dozens of asks
- Opening one web page isn't one question. Your browser, the client, sends a separate request for each file the page needs:
- What the standard says a client and a server are
- The web's own rulebook defines them by what they do on one connection, not by what kind of computer they are:
- Worked example: one machine, two roles
- On the card, the food app's server plays both parts in a single order. The rule: "The same program might act as a client on some connections and a server on others."
- Data centre
- Where most servers live: buildings of racks with power and cooling, close to big network links.
- Measure it
- In a desktop browser, press F12 and open the Network tab, then reload: every row is one request the client made.
- Watch out
- "It works on my phone" proves the client is fine, not the server. Check the service's status page too.
- Sources
- RFC 9110, HTTP Semantics, section 3.3. HTTP Archive, Web Almanac 2024, Page Weight. Read 28 Nov 2026.
What happens in the clients and servers animation, step by step?
- The food app on your phone is a client: it starts the conversation and asks. Far away, a server waits for questions.
- The server answers with the menu. It never calls first: a server only speaks when a client asks.
- Your turn: order a dish. Watch who asks and who answers.
- One server answers many clients at once. Every phone gets its own reply, and nobody sees anyone else's order.
- Client and server are roles, not machines. To take payment, the food server asks a payment server, and becomes a client.
- The client asks, the server answers. Next: what exactly is in an ask and an answer?
What everyday example explains clients and servers?
A customer and a shop counter: the customer walks up and asks; the counter never calls customers in.
Why should a team care about clients and servers?
Every app problem is either on the client (your phone, your app version) or on the server (theirs); knowing which side is the first step to fixing it.