Python program for file sharing using socket programming (client-server file sharing)
File: server.py
File: client.py
Output (Terminal-1)
kodingwindow@kw:~$ hostname -i | awk '{print $3}' 192.168.43.44 kodingwindow@kw:~$ python3 server.py TCP server waiting for client on port 5000 Connection established at ('192.168.43.44', 47058) Enter text-file name to send kw.py File sent!
Output (Terminal-2)
kodingwindow@kw:~$ python3 client.py b'print("Hello, World!")\n' File received!
What Next?
Python Database Connectivity
Advertisement