python

TCP server:

TCP client:

UDP server:

UDP client:

Reference:

http://www.bogotobogo.com/python/python_network_programming_server_client.php