A socket is a network communications endpoint. Sockets come in two primary flavors. A passive socket is not connected, but rather awaits an incoming connection, which will spawn a new active socket.
A socket is not a port, though there is a close relationship between them. A socket is associated with a port, though this is a many-to-one relationship.