13

I always get these two terms confused. How do you determine which side is the server and which side is the client? Is it determined by whether it's sending or receiving data? (Assuming the connection goes one-way)

Thank you,

3 Answers 3

23

In TCP, it's determined by the side that initiated the connection. The client initiates a connection, and the server listens for and accepts a connection. Once connected, data can flow both ways.

0
10

Definitions:

Server-side refers to operations that are performed by the server in a client–server relationship in computer networking. Typically, a server is a software program, such as a web server, that runs on a remote server, reachable from a user's local computer or workstation.

Client-side refers to operations that are performed by the client in a client–server relationship in a computer network. Typically, a client is a computer application, such as a web browser, that runs on a user's local computer or workstation and connects to a server as necessary.

enter image description here

0
1

If there are a lot more instances of one side of the connection than the other, the one with more instances is the client.

If one side stays running a lot longer than the other, the one that stays up longer is the server.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.