Python Generating a File Sharing Server
In Python we can create files sharing server easily to share files from one computer to another computer or cell phone by setting a free online FTP server.
python -m http.server 8000
Select any PORT number from 0 to 65353 upon execution of above paython command you will server is running on 127.0.0.1:8000
Now open chrome or any browser on your mobile phone and simply type YOUR_COMPUTER_IP_ADDRESS:PORT_NUMBER
To get the IP address you can do ipconfig on the terminal of your computer. Below you, will see the IPv4 address. For example, if your IP address is 192.168.39.145 and Port Number is 8000 then the file-sharing server will be running at 192.168.39.145:8000
If you have any questions about this code, you can drop a line in comment.
Comments
Post a Comment