You open the online shop myshop.com on your phone, and a second later its shoes page is there. In that second, two sides do the work: one asks, one answers.
The one who asks and the one who answers
- The client is the side that asks. Usually the client is a browser (the app you open websites with, such as Chrome) on your phone or laptop.
- The server is a computer that keeps a website and answers requests. The server stays on day and night, waiting for someone to ask.
The browser writes a request, such as "please send the shoes page". The server reads the request, then sends back a reply: the shoes page. The browser draws that reply on the screen. One request gets one reply.
Between the client and the server is a road that carries their messages (the requests and the replies): cables, Wi-Fi, your phone's signal and many devices that pass the messages on. That road is the internet. The internet only carries messages. It does not ask, and it does not answer.
💡 One phone, many roles
One phone can be a client of many servers at the same time: the weather app asks a weather server, the chat app asks a chat server. A server can be a client too, when the server itself asks another server for something.
TL;DR: The client (usually the browser on your phone or laptop) asks, and the server (a computer that keeps a website) answers. The internet is the road that carries requests and replies between them. One request gets one reply.
⚡ One asks, one answers
Guess first: the one who asks is called the client, and the one who answers is called the server. You open a weather app, and today's temperature appears. Which one is the client?
The weather app on your phone, because the app is the one asking. The weather provider's computer answers, so that computer is the server.
Meaning: The client is usually a browser (the app you open websites with) on your phone or laptop. The server is a computer that keeps a website and answers requests. The server stays on day and night. One request gets one reply.
⚡ The internet only carries
Meaning: Between the client and the server is a road that carries their requests and replies: cables, Wi-Fi, your phone's signal and many devices that pass them on. That road is the internet. The internet does not ask, and it does not answer.
⚡ One phone, many roles
Guess first: can a server be a client?
Yes, when the server itself asks another server for something.
Meaning: One phone can be a client of many servers at the same time: the weather app asks a weather server, the chat app asks a chat server.