Related
Client-Server networking is a paradigm which is most commonly used in networking the world over.
The client then receives the page and shows it to you, enabling you to read this wonderful article!
That is the gist of it.
How Do Clients & Servers Communicate?
I mentioned in the example above that “your gear requests the MakeUseOf server for a webpage”.
You might ask how does that happen?
Do they communicate in English or German or French?
Actually none of those.
There is no single language of communication either.
Clients and Servers use special messages, which conform to a common protocol to communicate with each other.
The protocol and message format must be agreed upon in advance or else there can be no communication.
The image above shows a sample HTTP request when I wanted to go toGoogle India.
Of Ports & Servers
Okay, now you know that your machine can speak HTTP.
So does that mean that all the communication over the Internet is using HTTP?
Or else how would my computer know when to use which protocol?
These are the questions I will attempt to answer in this section.
It’s now time to zoom in and have a detailed look.
Still confused by this definition of a client server data pipe?
Allow me to clarify.
Similarly set up the appropriate software and you might communicate withanykind of server.
The protocol implementation is all programmed into these applications.
you’re free to even install multiple server software on your setup.
The server software essentially listens to what are called ports on your setup.
Whenever a request comes on a designated port, the appropriate server takes action and responds.
Apache for instance listens to port 80 and browsers know to send requests to port 80 by default.
So whenever a request arrives on port 80 Apache would respond back with a webpage.