Hello everyone,
In this article, I’m going to show you how to make a server and client with Python.
Let’s get started with the Server side. First of all, get input to your listener IP and port.

Then, create a socket to listen to packages.

Next, do not forget to write some comment to know what is happening 🙂
In addition, would you like to know who has connected to your socket?
See below.

Finally, make a loop to keep the socket open for more messages.

Well, Server is done!
Let’s check the Client side now. First of all, specify the IP address and port that you want to connect.

Then, create a socket to connect.

Finally, make a loop to send messages.

It is enjoyable, right? 🙂 Then, stay tuned because I’ll get back with harder examples. 🙂 Thank you so much for your interest. Have a nice day 🙂
