Often when I have to transfer a file from my laptop to a device connected to the same LAN, the fastest way is to start a
python -m SimpleHTTPServer (or
python3 -m http.server), in the folder on my laptop and point the other device’s browser to the IP address of my laptop and the name of the file.
This usually works out fine, until the file I am trying to transfer has a long and complicated name like
nojs-tracking-mouse-_1342097761_demo_package.zip in a folder which contains thousands of files. I wrote
offer as a quick python script to allow hosting just one file on port
80 (if allowed) or port
Available on Github: musically-ut/offer