eli5: difference between socket and a port

140 views

After searching both these things up, I got that in networking, both a socket and a port is a commication endpoint. However, in many articles I’ve read they are used in different ways. Can someone explain key differences between a port and a socket, or provide a good analogy for one?

In: 7

4 Answers

Anonymous 0 Comments

A socket is the software-part of a port used by server programs to communicate over the internet. The port number identyfies the server program (Web Server on port 80, Mail Server on 25, Minecraft-server, …) running on a computer (which is identified by its IP address).

You are viewing 1 out of 4 answers, click here to view all answers.