Using python socket module to send messages I like Computer
Using python socket module to send messages \"I like Computer Network and Design\" using TCP socket. The host IP is 127.0.0.1 (or \'localhost\') server port number is 2000.
you can learn from the following code to create client.py and server.py files.
https://pymotw.com/2/socket/tcp.html
Solution
Sending
Here\'s simple code to post a note by UDP in Python:
Toggle line numbers
Receiving
Here\'s simple code to receive UDP messages in Python:
Toggle line numbers
