3 ms·
$ cd /directory/with/files/you/want/to/share $ python3 -m http.server 1337 Then just connect to the IP and Port of the machine hosting the python http server
by Eudai 4y ago
$ cd /directory/with/files/you/want/to/share
$ python3 -m http.server 1337
Then just connect to the IP and Port of the machine hosting the python http server and transfer away.
Aside from Bluetooth I'm not sure how you'd do this without using a LAN or WAN.
- hellisothers 4y agoLove this reply, giving me “Why Dropbox just rsync vibes” :)
- jrootabega 4y agoI do this but I always get a little nervous about it being accessible to any process anywhere on that network. If the system firewall supports it, I think it would be interesting to make the http connection, and then restrict that port to existing connections only. Once you are confident only your intended client has connected, put the files in the directory.
- anotherhue 4y agoI think croc is a superior solution here. Encrypted transfer. Automatic local peer detection. Human speakable commands. Turns off when you’re done. No firewall fiddling (and unfiddling) Pythons web server is single threaded I believe so any simultaneously connections break. https://github.com/schollz/croc https://github.com/schollz/croc