Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node)listens on a particular port at an IP, while the other socket reaches out to the other to form a connection. The server forms the listener socket while the client reaches out to the server.
step 1:- change the ip address of server to your current ip in the cilent.py To find the current ip of the device use the following command
ifconfig
ipconfig