TCP client server is used inside a single computer or different computers to test there services.
This is a python based tcp client program used to test for services, sending garbage data, fuzz, or other testing tasks. It is useful in when you don't have luxary of networking tools ot compilers and missing copy paste option or don't have internet connection.
run the client code as:
python tcp_client.py --help
in practice case the TCP_client and tcp_server code run like this: python tcp_server.py then start client program python tcp_client.py -t 127.0.0.2 -p 80
you can change the ip and port in both program according to your need