#p2p #networking #scp #sftp #hole-punching #cli-tool

app sendme

A cli tool to send directories over the network, with NAT hole punching

10 releases (6 breaking)

0.9.0 Jun 7, 2024
0.8.0 May 24, 2024
0.7.0 May 13, 2024
0.6.0 Apr 29, 2024
0.1.1 Dec 15, 2023

#240 in Network programming

Download history 4/week @ 2024-02-26 126/week @ 2024-03-11 3/week @ 2024-04-01 156/week @ 2024-04-15 176/week @ 2024-04-29 7/week @ 2024-05-06 153/week @ 2024-05-13 215/week @ 2024-05-20 54/week @ 2024-05-27 152/week @ 2024-06-03 31/week @ 2024-06-10

457 downloads per month


634 lines


This is an example to use iroh-bytes and iroh-net to send files and directories over the internet.

It is also useful as a standalone tool for quick copy jobs.

Iroh-net will take case of hole punching and NAT traversal whenever possible, and fall back to a relay if hole punching does not succeed.

Iroh-bytes will take care of blake3 verified streaming, including resuming interrupted downloads.

Sendme works with 256 bit node ids and therefore location transparent. A ticket will remain valid if the IP address changes. Connections are encrypted using TLS.


cargo install sendme


Send side

sendme send <file or directory>

This will create a temporary iroh node that serves the content in the given file or directory. It will output a ticket that can be used to get the data.

The provider will run until it is terminated using Control-C. On termination it will delete the temporary directory.

This currently will create a temporary directory in the current directory. In the future this won't be needed anymore.

Receive side

sendme receive <ticket>

This will download the data and create a file or directory named like the source in the current directory.

It will create a temporary directory in the current directory, download the data (single file or directory), and only then move these files to the target directory.

On completion it will delete the temp directory.

All temp directories start with .sendme-.


~1.5M SLoC