I just flagged this question about the difference between a port and a socket as off-topic. My flag was declined. Can someone explain to me how is this question related to programmers? To me, it's more related to network stuff which don't really belong here in my opinion.
A socket is inherently an interface that an OS provides to applications to communicate via an address, so I feel this question is relevant to a programmer. I don't see sockets as being a major concern for system administrators or network engineers but they certainly matter to software developers writing a network interface.