"Each program wanting to communicate with a device does so through a special sort of file called a socket, ???which specifies the protocol being used, the local IP address and port, and, in some cases, also the remote IP address and port.??? (Mac Security, by Joe Kissell)." . . . .