ADP Interview Question

What is the difference between a port and a socket

Interview Answer

Anonymous

May 2, 2015

A port is a software address on a computer on the network, a socket is a communication path to a port. When you want your program to communicate over the network, you have given it a way of addressing the port and this is done by creating a socket and attaching it to the port.