Live data from Hacker News

How to copy a file between devices? (2022)

grdw.nl

311–320 of 354 posts

Re: How to copy a file between devices? (2022)

#311

Any hackers left here? Why no one mentions netcat? # send cat file | nc -l -p 8888 # receive nc IP-OF-SENDER 8888 > file this works as long as both computers are connected to the same network, for example the internet

I would also wrap it in a WireGuard tunnel, especially if doing it over the Internet, unless you want your fellow hackers intercepting everything you're transferring. P.S. I love WireGuard, it's easy to set up and allows you to use protocols with no encryption (or bad proprietary encryption) securely.

At that point you might as well use ssh/scp.

Re: How to copy a file between devices? (2022)

#312

Earlier quoted context omitted.

Don’t you need to have tailscale on the machine (and thus give full access to all your machines to the company) for taildrop to work?

The Tailscale client is open source, FWIW

My understanding is that to configure your WireGuard tunnels the tailscale saas layer distributes the keys. If so there’s nothing stopping it distribute a key you don’t control.

Re: How to copy a file between devices? (2022)

#313
BitTorrent?

Every kid knew how to use this 15 years ago.

It can punch through a NAT. It’s blazing fast.

It doesn’t strictly require any central components, only the optional tracker to make peer discovery larger.

Too bad it got labeled as a piracy-only tool. Now Apple won’t allow it on the App Store. It’s actually damn useful for legit purposes too!

Re: How to copy a file between devices? (2022)

#314
A comparison like this is not complete without Windows file shares or SMB.

Sadly, despite pretending to try hard, it doesn’t pass the “requires expert to setup” test, it’s super easy to either accidentally lock down everything or accidentally open up your network to the world. It also fails the platform-consistency requirement, outside windows or outside your home network it is very frustrating.

Re: How to copy a file between devices? (2022)

#315
post #203

Writing code is fun, but I can't find much of a downside with Bluetooth here. "You can accidentally turn it on" (fair, I guess?) "and it drains battery like crazy" (it shouldn't unless you have a very buggy device) don't seem like that bad compared to Yet Another File Sharing App. I remember way back in the Android 4 era, my phone and my tablet both supported some "standard" form of WiFi Direct. It worked intuitively…

> Writing code is fun, but I can't find much of a downside with Bluetooth here. Yesterday my son needed to transfer a video file from his Android phone to his school iPad. We tried Bluetooth, but it simply kept failing, no matter what we tried. The devices saw each other and could be paired, but file transfer didn't work at all. We tried sending the same video file to another Android phone, and it just worked on firs…

[deleted]

Re: How to copy a file between devices? (2022)

#316
post #311

Earlier quoted context omitted.

I would also wrap it in a WireGuard tunnel, especially if doing it over the Internet, unless you want your fellow hackers intercepting everything you're transferring. P.S. I love WireGuard, it's easy to set up and allows you to use protocols with no encryption (or bad proprietary encryption) securely.

At that point you might as well use ssh/scp.

True, but in my experience WireGuard + unencrypted file transfer protocols is faster, not to mention more flexible. But if you already have SSH set up, that's a good option for sure. I used to use SSH port forwarding extensively before I discovered WireGuard.

Re: How to copy a file between devices? (2022)

#317
post #136

I regularly have to send files to customers, from a few megabytes to a few gigs. It's incredibly hard. Mail? Goes to spam. WeTransfer? Mail clients break URL. Download from my website? Some stupid browser will display the zip data onscreen. Send the link through messenger? Messenger breaks the link. SaaS gallery? Some file managers can't open the zip file. I've been doing that for two years now. Still don't have a 10…

Google drive is quite good. Like normal gmail but click the triangle icon at the bottom of the email compose window.

Re: How to copy a file between devices? (2022)

#318
post #288

Earlier quoted context omitted.

lol. You elongated this by assuming Bluetooth is disabled on both devices, which is not the default state on any OS I am aware of. The actual step list looks like this: 1. Enable Bluetooth discoverability on the target device. 2. Share file over Bluetooth on source device. 3. Accept the file transfer on target device. You don't need to add extra steps for things like "wait", that's the same for any kind of I/O operat…

>which is not the default state on any OS Irrelevant. It could be intentionally or accidentally disabled by the user. I don't know why you are so annoyed, but I know for a fact that average non-technical person is incapable of sharing files over Bluetooth on their own, and this probability of incapacity increases with age.

I'm annoyed because it doesn't really matter, misrepresenting the situation by adding steps that aren't really there doesn't strengthen the case, it makes it sillier. I would guess it's more likely that people don't know to use Bluetooth for sharing, more than they simply couldn't figure it out. And to be fair, why would they?

There are a lot of things where simply knowing to do them is a large part of the problem, rather than a literal inability.

Re: How to copy a file between devices? (2022)

#319
post #136

I regularly have to send files to customers, from a few megabytes to a few gigs. It's incredibly hard. Mail? Goes to spam. WeTransfer? Mail clients break URL. Download from my website? Some stupid browser will display the zip data onscreen. Send the link through messenger? Messenger breaks the link. SaaS gallery? Some file managers can't open the zip file. I've been doing that for two years now. Still don't have a 10…

Google Drive? Starts at $2/mo for 100GB.

Or free if <15GB.

Re: How to copy a file between devices? (2022)

#320

Earlier quoted context omitted.

Google Drive? Starts at $2/mo for 100GB.

That would be blocked in a lot of large companies. IT blocks common cloud storage urls to prevent employees from storing company data on third party servers.

I just tried sending an email with it and it only seemed to use the mail.google.com url.

I guess if your company blocks that you might have problems.

Post reply on HN