github twitter linkedin email rss
Transfer files between computers using python and lftp
Sep 11, 2023
One minute read

I have found a neat way to transfer single files or whole folders between two computers in the same network.

On one PC, turn it into an HTTP server:

python3 -m http.server

And find its IPV4 address. Use ipconfig (Windows) or ifconfig (Linux).

Finally, using a browser in the other PC, access the server on http://my_ip:8000. From there, you can navigate the file system and download single files easily or download whole folders using lftp:

lftp -c 'mirror --parallel=100 http://my_ip:8000/folder ;exit'

Back to posts


Hey, be the first who comment this article.