i

Python Programming

Python Socket Server

Now create a client / server program with Python

Above code makes socket object and binds it to local-host’s port 8080 as socket server. When clients connect to this address with socket connection, the server listens for data  and stores it in “data” variable.

Next, the program logs client data using “print,” and then sends string to client: I am SERVER.