Ex.No:1 Date: TCP SOCKET AIM: To write a program to transfer string between client and server using TCP. ALGORITHM: Step 1: Start the program. Step 2: Include the necessary…