Live data from Hacker News

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

github.com

41–50 of 262 posts

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

#41
post #7

Earlier quoted context omitted.

Can I use it with my buddy on the other end and connect his machine to mine easily? Like let him slurp a file from my home machine?

Just set up a VPN if that's what you want?

(author here)

The protocol enumerates all the IPv4 addresses on each side, and attempts to connect to all of them, and the first successful handshake wins.

So if your VPN arrangement enables a direct connection, `wormhole send` will use that, which will be faster than going through the relay (and cheaper for the relay operator).

A basic VPN gets you safe connectivity between the two sides, but transferring a file still requires something extra, like a preconfigured ssh/scp account, or a webserver and the recipient running `curl`/`wget`. magic-wormhole is intended make that last part easy, at least for one-off transfers, just `wormhole send FILENAME` on one side, and `wormhole receive [CODE]` on the other.

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

#42
post #13

Earlier quoted context omitted.

Mobius Sync. Works like a charm.

Möbius Sync doesn't sync in the background; you must have the app in the foreground for it to function. So, not quite a proper substitute for Syncthing, but may work for OPs usecase.

Nope, it does sync in the background, just few minutes ago I had a notification that it synced.

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

#43

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

When python is not installed already (Windows pretty much) or the computer is the destination, I prefer https://github.com/sigoden/dufs, a single binary supporting uploads, folder .zip download, and even webdav

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

#44

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.

https://mobiussync.com/

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

#45

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.

If they're on the same network, cross platform, open source airdrop alternative https://github.com/localsend/localsend

I like LocalSend and Landrop. The latter performed better when I sent large files. However, neither of them does it automatically; you have to manually do it every time, which is okay since they don’t claim to be sync software.

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

#46
post #24

Earlier quoted context omitted.

Möbius Sync doesn't sync in the background; you must have the app in the foreground for it to function. So, not quite a proper substitute for Syncthing, but may work for OPs usecase.

Of course it syncs in the background. It‘s just not instantaneous, because iOS severely limits what you can do in the background.

Right, it does the best it can given the limitations of iOS, but "not instantaneous" can mean hours before synchronisation happens. When the phone's charging, or when the app is open, then it does tend to work almost as well as on Android.

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

#50

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…

Seems like the only way to ensure wormhole to scale is to only to use relay server to setup direct connections.

I know this requires one of the ends to be able to open ports or whatever but that should be baked into the wormhole setup.

Post reply on HN