| Crates.io | aranya-example-multi-node |
| lib.rs | aranya-example-multi-node |
| version | 4.0.0 |
| created_at | 2025-11-14 21:57:05.049852+00 |
| updated_at | 2025-11-14 21:57:05.049852+00 |
| description | Example of how to run each Aranya device on a different machine in a network |
| homepage | |
| repository | https://github.com/aranya-project/aranya |
| max_upload_size | |
| id | 1933530 |
| size | 140,340 |
An example that runs each Aranya device as a stand-alone executable.
In this workspace, run:
cargo make run-rust-example-multi-node
Copy the following artifacts onto each node:
example.env - an environment file for loading shared configuration info such as IP addresses into executablesaranya-daemon - the Aranya daemon executablearanya-example-multi-node-<node variant> - the team member's Aranya client executableFor example, the owner device would copy the aranya-example-multi-node-owner executable from the target/release/ folder onto the corresponding machine acting as the owner on the team.
Once the artifacts have been copied onto each machine, source the environment file into the current environment on each machine: . example.env
Create a config.toml configuration file for each daemon before starting them:
example daemon config file
Start the Aranya daemon aranya-daemon executable and Aranya client executable on each machine on the network at the same time. E.g. on the owner machine run:
aranya-daemon --config <path to daemon config file>
aranya-example-multi-node-owner --uds-sock <path to daemon's unix domain socket API>
Each node's executable will load information such as IP addresses from the environment file and perform operations via the Aranya client such as setting up the team and AFC channels.