Custom Search

Wednesday, July 16, 2014

What is endpoint or socket

For example a http-Server uses port number 80, SSH uses port 22 and so on. The combination of IP-address and port number is called socket and is unique. Therefore connections are uniquely defined by their endpoints (=sockets), a connection sends data from the clients socket to the server socket and vice versa, for example from the socket with IP, port 65432 to the socket with IP, Port 80 as it may occur for a browser on that connects to a http-server on Server processes are usually using standardized ports, so called 'well known ports'. A client usually uses a port from the upper port range (larger than 1023).

1 comment: