Live data from Hacker News

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

magic-wormhole.readthedocs.io

91–100 of 107 posts

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

#91
post #25

I’ve used this and localsend, both are great, but has anyone finally solved the problem of making one of these things that can use a GUI (for phones and tablets) and also a CLI (for when I’m SSHed into my home computer and need to send a video to get processed by something)?

There are several different clients available for Magic Wormhole, including GUIs and phone apps: https://magic-wormhole.readthedocs.io/en/latest/ecosystem.ht...

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

#94
post #4

A simple encrypted channel for file transfer. A great way to send a file to a stranger who is near you but shares nothing with you, e.g. at a conference. /* A modern version should, of course, work in a browser, so that there'd be no Python packages to install. But the browser security model does not allow listening, so a signaling server would be needed to create a WebRTC connection. It could run on one of the devic…

There are Rust and Haskell implementations too (not quite as feature-full as the Python code yet, though) as well.

In principal WebRTC communication could be added to magic-wormhole, but that work has not been done yet. There is WebSocket support in the relay (including "cross-protocol" so one client can be WebSocket and the other TCP). This is only deployed on the Winden.app servers (tcp://relay.mw.leastauthority.com:4001 and wss://relay.mw.leastauthority.com for the relay).

You'd need to use the Winden.app relay server if you want https://winden.app users to reach your Python CLI (e.g. via "wormhole --relay-url wss://mailbox.mw.leastauthority.com/v1 send" for example)

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

#95

How better than Syncthing is it?

Syncthing is for storing files across different endpoints. Magic wormhole sends a file to a computer.

One use-case could be for SyncThing to actually _use_ magic-wormhole as a way to introduce / join another endpoint to a SyncThing folder.

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

#96

can Magic Wormhole help me place a directory of a terabyte of files onto multiple hosts in a datacenter ?

You should probably first test and ensure that you're sending "directly" instead of via the relay -- but if that's true then yes.

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

#97

Been using it from time to time to transfer secrets; out of curiosity, when I'm sending something to some via this tool, do you known what machines is it relayed through? I am sure it's not peer-to-peer; would not be as reliable!

(author here) Both sides connect to the "mailbox relay server" to perform key exchange and setup. That's a host named "relay.magic-wormhole.io". If either side has a public IP address, the encrypted data is transferred directly (they exchange IP addresses through the encrypted pipe, and attempt to connect to all of them, so this also covers two peers on the same LAN). If neither do, they both connect to a public "tra…

Note, too, that you may run your own "transit helper" (code: https://github.com/magic-wormhole/magic-wormhole-transit-rel... ) and then specify this via "wormhole --transit-helper tcp::" when doing a transfer.

You do need to run the helper on a public IP address, like a rented VPS for example.

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

#98
post #51

My friend and former colleague has built a bunch of stuff over magic-wormhole like fowl[0], shwim[1] and so on. There is a lot of nice work on "dilated" wormhole. [0] https://github.com/meejah/fowl > [1] https://github.com/meejah/shwim >

...and also "Git-WithMe" for peer-to-peer, one-off Git usage: https://sr.ht/~meejah/git-withme/

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

#99

Maybe I’m missing something but has this been largely superseded by wireguard these days?

To summarize some of the key differences [1]:

- Purpose/Scope: WireGuard creates persistent VPN tunnels for ongoing network connectivity. Magic Wormhole handles ephemeral file transfers.

- NAT Traversal: WireGuard typically requires at least one publicly-reachable endpoint. Magic Wormhole's relay server handles NAT traversal for initial rendezvous, then attempts direct connection.

- Configuration: WireGuard needs config files with public keys and endpoints. Magic Wormhole just needs a temporary code.

- Layer: WireGuard operates at network layer (creates virtual interface, routes IP traffic). Magic Wormhole is application-level.

[1] Based on a conversation with Claude 4.5, distilled and lightly edited. This information matches my experience with them.

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

#100

Been using it from time to time to transfer secrets; out of curiosity, when I'm sending something to some via this tool, do you known what machines is it relayed through? I am sure it's not peer-to-peer; would not be as reliable!

(author here) Both sides connect to the "mailbox relay server" to perform key exchange and setup. That's a host named "relay.magic-wormhole.io". If either side has a public IP address, the encrypted data is transferred directly (they exchange IP addresses through the encrypted pipe, and attempt to connect to all of them, so this also covers two peers on the same LAN). If neither do, they both connect to a public "tra…

So if I understand correctly, even if I use your relay, the relay relays encrypted data, never learning what I am sending?
Post reply on HN