News for hackers. Stuff that matters.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by capableweb on Tuesday October 25, 2022 @10:50AM (#33331228)
Transferring files between two computers/phones/devices right next to each other, regardless of operating system.

Most solutions rely on sending a file to some server in probably a different country, and then downloading said file on the other computer. Or, using a USB stick to pass the file from one to the other.

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by domador on Tuesday October 25, 2022 @11:19AM (#33331768)
Yes! One should be able to take advantage of the speed of a local transfer. One doesn't always have access to a blazingly fast Internet connection and file-transfer service through which to transfer data. One should be able to transfer data between neighboring devices even when no Internet connections are available.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by wizzwizz4 on Tuesday October 25, 2022 @11:17AM (#33331740)
This is the only thing that Bluetooth consistently works for. I can send files between my laptop and my feature phone, and other people's laptops, and other people's phones… It's more reliable than email.

Bluetooth doesn't consistently work for connecting I/O devices to my computer, though. Only peer-to-peer file transfer.

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by capableweb on Tuesday October 25, 2022 @11:24AM (#33331850)
Bluetooth almost got me 100% there as well! Until I discovered that Apple devices don't support sending/receiving files via Bluetooth. But at least it covers about 80% of the devices I own and doesn't rely on external services like most other options people wrote about as a reply.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by wizzwizz4 on Tuesday October 25, 2022 @11:33AM (#33331976)
Macbooks do; there's an app called Bluetooth File Exchange. Most people I know with iPhones have macOS laptops, too, so I can send to that.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by capableweb on Tuesday October 25, 2022 @02:31PM (#33334417)
Ah, sadly the 20% in the amount I wrote about above is one iPhone that won't play nice with the Bluetooth coverage I have at home with other devices :/
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by vanderZwan on Tuesday October 25, 2022 @10:57AM (#33331369)
KDE Connect works for me. Granted, I've only tried it between an android phone and a Linux laptop, but I've heard from others it works well on other OSes and phones too:

https://kdeconnect.kde.org/download.html

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by JCWasmx86 on Tuesday October 25, 2022 @10:59AM (#33331421)
For me transmitting any file over the network between my android(Termux) and my laptop(Fedora) is awful. It starts with a quite fast transmission (Like 60 Mbps), but always drops to just a few kbps after a few hundred megabytes. Netcat does this, python HTTP-Server, FTP, scp, everything fails.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by vanderZwan on Tuesday October 25, 2022 @11:02AM (#33331472)
... including, I presume, KDE Connect?

I feel your pain, I tried tons of other solutions before discovering KDE Connect. It works well for my laptop/phone combination, but I given how horrible each other solution was before it I'm not surprised if it doesn't work for others.

edit: I wonder if perhaps some part of your phone hardware overheats after N megabytes because it's not built for constant file transfer, or constant file transfer using these protocols at least? What if you try throttling it on purpose?

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by JCWasmx86 on Tuesday October 25, 2022 @11:07AM (#33331569)
Yeah, KDE Connect did the same.

I think it is the fault of the network stack of one those two devices, otherwise I can't explain that. Maybe that the devices receive/send data faster than they are able to process. (Is this even possible?)

But I could be awfully wrong

Regarding your edit: That's a good idea, but I never attempted that. I can't test that, because I'm in a Wifi where no device is allowed to talk to another :(

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by anotherhue on Tuesday October 25, 2022 @08:35PM (#33338179)
Smells like a TCP in TCP problem.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by alternatetwo on Tuesday October 25, 2022 @10:53AM (#33331294)
Or even just a small piece of text, i.e. a link. I have a samba share on one system for files, but that is certainly not "regardless of operating system", as it's a pain to do that with a phone.

So a discord server with just me in it is ... also gives you handy direct links for files up to 8mb.

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

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by deweller on Tuesday October 25, 2022 @11:25AM (#33331862)
For PC-to-PC syncing of folders, I have found https://syncthing.net/ to work well.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by gmemstr on Tuesday October 25, 2022 @11:09AM (#33331604)
Taildrop (https://tailscale.com/kb/1106/taildrop/) mostly filled this for me, although this is just for the same Tailnet. AirDrop is also pretty slick. Otherwise I chuck it onto my NAS.

Of course all of these solutions have some serious pre-requisites...

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by voxic11 on Tuesday October 25, 2022 @11:03AM (#33331504)
I just use https://file.pizza/ works on any OS with a web browser and the file is transferred p2p so its very fast over local networks. And the Url is easy to remember.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by capableweb on Tuesday October 25, 2022 @02:30PM (#33334409)
Looks great and P2P is of course required for this, but sadly it'd only work when online :/

Would be great with local network discovery of p2p peers but seemingly browsers are not really interested in enabling that...

Re:Ask HN: What is your fav “I can't believe in 2022 this st... by Eavolution on Tuesday October 25, 2022 @11:23AM (#33331833)
KDE Connect is a godsend for this. Surprisingly its on windows too
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by prego_xo on Tuesday October 25, 2022 @10:56AM (#33331358)
Perhaps the 3DS was on to something with those tiny IR sensors on the front.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by thesuperbigfrog on Tuesday October 25, 2022 @11:03AM (#33331493)
IR transfers worked great on Palm Pilots (and their successors) and many models of graphing calculators.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by JCWasmx86 on Tuesday October 25, 2022 @10:56AM (#33331352)
`python -m http.server` if they are in the same network? Sure, you have no authentication/security, but for quick+dirty it works fine
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by capableweb on Tuesday October 25, 2022 @10:57AM (#33331388)
AFAIK, python doesn't ship by default on any operating system anymore (used to on macOS). Otherwise yeah, it's a good contender. You'd still need to pass the URL somehow to the other machine :)
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by hdjjhhvvhga on Tuesday October 25, 2022 @11:03AM (#33331503)
I think it does on several major Linux distros .
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by dalyons on Tuesday October 25, 2022 @10:55AM (#33331337)
i know you probably know this & you said OS agnostic - but apple really nailed this between macs and iphones. The shared clipboard feels like magic, and airdrop works great too.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by jeffbee on Tuesday October 25, 2022 @10:54AM (#33331307)
AirDrop? Always works flawlessly in my experience.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by marricks on Tuesday October 25, 2022 @10:55AM (#33331330)
It sure does, but they said "regardless of operating system." Outside of the apple-verse it still sucks.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by jeffbee on Tuesday October 25, 2022 @11:21AM (#33331800)
Oh I see. I took it to mean there are no platforms where this works, but they make there is no scheme that works across all platforms? The problem with the latter form of the question is there will always be some garbage platform that doesn’t participate.
Re:Ask HN: What is your fav “I can't believe in 2022 this st... by tpoacher on Saturday October 29, 2022 @04:58AM (#33382272)
I'm pretty pissed off that infrared got phased out as a technology. Doubly so that this was replaced by bluetooth.

Yes it was slow, but it worked straightforwardly and reliably, every, single, time.