What is Socket connections?
A network socket is an end-point of a two way inter-process communication link between two programs running across the computer network. As, most of the communications on the computer internet are based on the internet protocol, that’s why the need to use the internet sockets. Socket connection allows client to bind the local port to deliver the incoming data packets.
The socket address is made up of the IP address and the Port number, so most of it is bounded to the port number. So that, the application will be sent to the exact destination the TCP layer’s identification of port number.
The Internet Sockets are characterized as the Local Socket Address and the Remote Socket Address. Local Socket Address is the combination of the Local IP address and the port number. Remote Socket Address are established for the TCP sockets. There are several types of Internet Sockets, such as Datagram Socket which is connectionless socket, and it uses User Datagram Protocol(UDP). Stream Sockets are the connection-oriented Sockets that uses Transmission Control Protocol (TCP) or Stream Control Transmission Protocol (SCTP). Raw Sockets are available in the routers or in other network equipments.