File transfer through TCP using socket programming in python.
- Python3
pip install tqdm
For server.py:
# Change if this port is used elsewhere
PORT = 4456
for client(clientUploader.py, clientDownloader.py and client_on_thread.py):
# If server and client on diffrent server then keep it unchanged
# But if client and server on diffrent system find the server ip and port and put it here.
IP = socket.gethostbyname(socket.gethostname()) # target server IP
PORT = 4456 # target server PORT
python server.py
and
python clientUploader.py