eli5: difference between socket and a port

141 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 uniquely identifiers an endpoint of a connection. To simplify a bit it is a combination of IP address and port number.

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