educative.io

Sockets vs Ports

What is the difference between sockets and ports in computer networks?

Hi @Yusha_Arif,

Socket: the combination of IP address (used to uniquely identify the device over the internet) + port number (used to identify the target application on your computer)