Skip to content

Instantly share code, notes, and snippets.

@sandrabosk
Last active February 2, 2021 05:50
Show Gist options
  • Save sandrabosk/0b0158bd44ff2cc84414c424459def8d to your computer and use it in GitHub Desktop.
Save sandrabosk/0b0158bd44ff2cc84414c424459def8d to your computer and use it in GitHub Desktop.

Client and server communication

Clients and servers exchange messages in a request-response messaging pattern:

  1. The client sends a request
  2. The server returns a response

To communicate, computers must have a common language, and they have to follow the rules. The reason for this is so that both the client and the server know what to expect. The language and rules of communication are defined in a communications protocol called Internet protocol (IP) suite.

How to reach a specific server

IP address consists of four numbers between 0 and 255 separated by dots. For example, this is one of Google's IP addresses: 66.102.1.102. Since it's difficult to remember IP addresses as combination of random numbers, we need something like a phone book so we can just type google.com and see the Google's website. This is called the Domain Name Systems (DNS).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment