sockets in python introduction socket is an end point in communication link between separate processes in python sockets are objects which provide way of exchanging information between two processes in straight forward and platform independent manner in this we will introduce the basic idea of socket communications and then presents simple socket server and client application socket to socket communication when two operating system level processes wish to communicatethey can do so via sockets each process has socket which is connected to the others socket one process can then write information out to the socketwhile the second process can read information in from the socket associated with each socket are two streamsone for input and one for output thusto pass information from one process to anotheryou write that information out to the output stream of one socket object and read it from the input stream of another socket object (assuming the two sockets are connectedseveral different types of sockets are availablehowever in this we will focus on tcp/ip sockets such socket is connection-oriented socket that will provide guarantee of delivery of data (or notification of the failure to deliver the datatcp/ipor the transmission control protocol/internet protocolis suite of communication protocols used to interconnect network devices on the internet or in private intranet tcp/ip actually specifies how data is exchanged between programs over the internet by providing end-to-end communications that identify how the data should be broken down into packetsaddressedtransmittedrouted and received at the destination (cspringer nature switzerland ag huntadvanced guide to python programmingundergraduate topics in computer science