Live data from Hacker News

Magic Wormhole: get things from one computer to another, safely

github.com

71–80 of 262 posts

Re: Magic Wormhole: get things from one computer to another, safely

#71

I realize this is a dumb question, but what's a good way to do this between an iPhone and a MacBook? Airdrop is disabled (by policy), iCloud storage is full (because I'm lazy), and I use syncthing on every other device, but I haven't found a client I can use on my work iPhone.

Connect both devices to the same WiFi network and use a http server like: python -m http.server

I used this for years, then finally implemented uploads with flask. Can send photos from mobile quickly.

Re: Magic Wormhole: get things from one computer to another, safely

#72
post #55

Earlier quoted context omitted.

Right. Also you may have to reconfigure some firewalls to use scp. Typically, a firewall allows outbound connections without needing an explicit entry for the protocol, and in the case of magic wormhole, both sides are an outbound connection. So it passes right through. If you've got security-minded folk managing that sort of thing for you, it's possible that magic wormhole will upset them for this reason. More for p…

Both problems can be worked around by having a third, general-purpose host where both source/destination hosts can scp to/from. Not quite as straightforward because you have to copy twice and do it from both sides, but has the benefit of not having to install bespoke software.

> Both problems can be worked around by having a third, general-purpose host where both source/destination hosts can scp to/from.

Yup it's what I do, that 3rd computer having a fixed IP. Conveniently that computer can also keep a copy of the file(s).

Linux/BSDs/OS X (which is kinda a Unx too) all come stock with scp* and I don't really use Windows, so I'm a happy camper.

Re: Magic Wormhole: get things from one computer to another, safely

#74

I've used wormhole once to move a 70 GB file. Couldn't possibly do that before. And yes, I know I used the bandwidth of the relay server, I donated to Debian immediately afterwards (they run the relay for the version in the apt package).

(magic-wormhole author here) Thanks for making a donation! I run the relay server, but the Debian maintainer agreed to bake an alternate hostname into the packaged versions (a CNAME for the same address that the upstream git code uses), so we could change it easily if the cost ever got to be a burden. It hasn't been a problem so far, it moves 10-15 TB per month, but shares a bandwidth pool with other servers I'm rent…

I remember at one point reading about webrtc and some kind of "introducer" server that would start the peer-to-peer connections between clients.

Does wormhole try something like that before acting as a relay?

Re: Magic Wormhole: get things from one computer to another, safely

#76

I realize this is a dumb question, but what's a good way to do this between an iPhone and a MacBook? Airdrop is disabled (by policy), iCloud storage is full (because I'm lazy), and I use syncthing on every other device, but I haven't found a client I can use on my work iPhone.

Tailscale’s killer feature TailDrop. Reliable file transfer between devices of all kinds!

Re: Magic Wormhole: get things from one computer to another, safely

#80

I find `syncthing` pretty useful for this kind of stuff. It's been around a long time and has a lot of different options for configuration and clients for every platform you could imagine, both UI based and command line. On every *nix platform I would just install the `syncthing` package and use it quite easily. I've experimented with some wormhole stuff before and looked at this package some, but there would be a lo…

I use Warp from Flathub, which I believe uses Magic Wormhole.
Post reply on HN