Writing a server and client Python scripts that receives and sends files in the network using sockets module in Python.
File transfer is the process of copying or moving a file from a computer to another over a network or Internet connection. In this tutorial we’ll go step by step on how you can write client/server Python scripts that handles that.
The basic idea is to create a server that listens on a particular port, this server will be responsible for receiving files (you can make the server sends files as well). On the other hand, the client will try to connect to the server and send a file of any type.
We are going to use socket module which comes built-in with Python and provides us with socket operations that are widely used on the Internet, as they are behind of any connection to any network.
#python #sockets