Socket programming is a way of connecting two nodes on a network to communicate with each other.
To begin with socket programming, beforehand we need to install socket package. Either you can use pip install socket command in command prompt or you can use juypter notebook by using !pip install socket.
Server.py
Client.py
Output
laddr — local address, raddr — remote address
In client.py, we received the message. When you run the program beyond 10 sec, message won’t appear and give timeout, because here I used s.settimeout(10)