In simple words, networking is usually a way for communication between two processes running in computers. As an example, consider browsing Facebook in Google Chrome. When we run Chrome, it runs as a process in our computer. Similarly, a process keeps running in Facebook's server computer.
When we type 'Facebook.com' in the browser and press Enter, Chrome sends a message to Facebook's server (via the Internet) asking for the webpage. Facebook's server process responds by sending a webpage back to Chrome and Chrome displays the webpage.
In this article, we will learn the basic terminology in computer networking.
IP Address: the Address of a Computer
In real life, if you want to send a message via post office to one of your friends, you must know his address. This address will uniquely identify your friend's location.
Similarly, for sending to another computer (in this case from Chrome to Facebook's server), we also need the address of the computer that will uniquely identify the computer. This address of a computer is called IP Address of that computer.
Every computer in a network is assigned a unique number that identifies the computer. This number is called IP Address of that computer.
An example of IP Address is 157.240.7.35.
Note that though IP address is a single number, it is expressed as 4 numbers separated by dots so that we can remember easily. Each number represents 1 byte of the actual number.
(You can see the IP address of your computer. For macOS follow: https://www.wikihow.com/Find-Your-IP-Address-on-a-Mac. For Windows follow: https://support.microsoft.com/en-us/help/15291/windows-find-pc-ip-address )
Port Number: the Address of an End Point
Back to the previous example: there can be many people living in the same address. For example: Miss W Foster and her husband Mr Jonh and their kids may live in the same address. You may want to send the mail to Miss W Foster, not her husband. In this case, we need to specify the name of the recipient Miss W Foster along with the address.
Similarly, a single computer can run multiple processes. For example: our computer may run both Chrome and Firefox at the same time. So, we need a way to identify Chrome and Firefox in the same computer.
To solve this problem, the processes in a single computer creates an end point before starting any messaging. Each end point is identified by a number. This number is called port number of that end point.
Port number is a number that identifies an end point in a single computer.
An example of port number is 443.
Socket
As I mentioned previously, before starting messaging, a process have to create a network end point. All the communication is done through these end points. These end points are called sockets. Sockets are like electric sockets: electric sockets are end points of electric network, network sockets are end points of networks.
Back to the messaging between Chrome and Facebook server, before sending a message to the server, Chrome need to create an end point through which messaging with the server will be done. Similarly, Facebook server process also needs to create an end point before starting any messaging.
An end point in a network is called a socket.
Socket is expressed in the following format:
For example: Facebooks server's socket can be expressed as
When we type 'Facebook.com' in the browser and press Enter, Chrome sends a message to Facebook's server (via the Internet) asking for the webpage. Facebook's server process responds by sending a webpage back to Chrome and Chrome displays the webpage.
IP Address: the Address of a Computer
In real life, if you want to send a message via post office to one of your friends, you must know his address. This address will uniquely identify your friend's location.
Similarly, for sending to another computer (in this case from Chrome to Facebook's server), we also need the address of the computer that will uniquely identify the computer. This address of a computer is called IP Address of that computer.
Every computer in a network is assigned a unique number that identifies the computer. This number is called IP Address of that computer.
An example of IP Address is 157.240.7.35.
Note that though IP address is a single number, it is expressed as 4 numbers separated by dots so that we can remember easily. Each number represents 1 byte of the actual number.
(You can see the IP address of your computer. For macOS follow: https://www.wikihow.com/Find-Your-IP-Address-on-a-Mac. For Windows follow: https://support.microsoft.com/en-us/help/15291/windows-find-pc-ip-address )
Port Number: the Address of an End Point
Back to the previous example: there can be many people living in the same address. For example: Miss W Foster and her husband Mr Jonh and their kids may live in the same address. You may want to send the mail to Miss W Foster, not her husband. In this case, we need to specify the name of the recipient Miss W Foster along with the address.
Similarly, a single computer can run multiple processes. For example: our computer may run both Chrome and Firefox at the same time. So, we need a way to identify Chrome and Firefox in the same computer.
To solve this problem, the processes in a single computer creates an end point before starting any messaging. Each end point is identified by a number. This number is called port number of that end point.
Port number is a number that identifies an end point in a single computer.
An example of port number is 443.
Socket
As I mentioned previously, before starting messaging, a process have to create a network end point. All the communication is done through these end points. These end points are called sockets. Sockets are like electric sockets: electric sockets are end points of electric network, network sockets are end points of networks.
Back to the messaging between Chrome and Facebook server, before sending a message to the server, Chrome need to create an end point through which messaging with the server will be done. Similarly, Facebook server process also needs to create an end point before starting any messaging.
An end point in a network is called a socket.
Socket is expressed in the following format:
IP-Address:port-number
For example: Facebooks server's socket can be expressed as
157.240.7.35:443






