(iOS) Media Transfer utility written in Rust.
I got really tired of transfering photos from iPhone to Arch + Hyprland. Even though there are existing apps, such as KDE connect, they sometimes just don't save the sent files for some reason. It also (as far as I know), doesn't support deleting files after transfer.
You have to compile it yourself, but that shouldn't be a problem. Only thing
you need is cargo.
You can install it globally to ~/.cargo/bin:
cargo install --path .Alternatively, you can just build the release binary locally (binary will be
in ./target/release):
cargo build -rRun metran to start the server, which listens for files.
metranThen on your iPhone, get Shortcuts app and add metran shortcut. You can also use the zip variant of the shortcut, which sends ZIP archive instead of individual files. This aims to improve transfer speeds, especially for bulk sending.
When adding the shortcut, it asks you for the server address. You need to know your PC's local IP address. You can find it by running:
ip a showLook for interfaces such as wlan0 or eno1 and then find the inet field.
The IP address should look something like 192.168.1.50.
You can then run the shortcut. It will prompt you to select the photos to send, and after sending them, it will prompt if you want to delete the original photos from your phone.
When starting the server, you can also adjust the configuration, such as the server address and port.
Note: To allow connections from other devices on your network, you should use
0.0.0.0address.
./metran -a 0.0.0.0 -p 1234You can see all the usage in the program help.
./metran -hEnsure your firewall allows incoming TCP connections on the port metran is
running on (default i 8080).
- Author: Martan03
- GitHub repository: metran
- Author website: martan03.github.io
- Apple shortcut: