Problem solve Get help with specific problems with your technologies, process and projects.

What is the difference between a port and a socket?

What is the difference between a port and a socket?

I am assuming you are referring to logical uses. A port is a logical connection method two end points communicate with. Ports operate at the Transport layer of the OSI. For example a VPN client connects to a VPN server over Port 1723. A socket is one end point of a connection. Sockets are a means of plugging the application layer in. Sockets are determined by an IP address and port number. For example, for a VPN client to connect the client would need to use the socket determined by the port number and IP of the local client.

This was last published in May 2003

Dig Deeper on Network Infrastructure

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.