1. SocketProgramming1 2. What is a socket? An interface between application andnetwork The application creates a socket The socket type…