News for hackers. Stuff that matters.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by Eudai on Tuesday October 25, 2022 @10:58AM (#33331405)
$ 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.

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by jrootabega on Tuesday October 25, 2022 @11:22AM (#33331823)
I 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.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by hellisothers on Tuesday October 25, 2022 @11:00AM (#33331441)
Love this reply, giving me “Why Dropbox just rsync vibes” :)
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by anotherhue on Tuesday October 25, 2022 @08:34PM (#33338167)
I 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 I fiddling)

Pythons web server is single threaded I believe so any simultaneously connections break.

https://github.com/schollz/croc