A simple TCP client and server for easy testing
pip install simple-tcp==0.6
Simple tools to manually test socket programming project. Requires python3.
socket
, argparse
, ssl
, and sys
)python3 simple_tcp.py -s -p 3000
: start server socket on port 3000 and accept connection from all interfacepython3 simple_tcp.py -c -h 192.168.1.20 -p 3000
: connect to 192.168.1.20:3000python3 simple_tcp.py -i
: interactive mode, the script will ask for host, port and mode interactively (easier for noobs)-a 192.168.137.20
, will default to localhost
if not set-p 8888
, will default to 80
if not set-b 1024
, will default to 4092
if not set