Skip to content

Martan03/metran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metran

(iOS) Media Transfer utility written in Rust.

Table of Contents

Description

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.

Installation

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 -r

Usage

Run metran to start the server, which listens for files.

metran

Then 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 show

Look 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.0 address.

./metran -a 0.0.0.0 -p 1234

You can see all the usage in the program help.

./metran -h

Firewall Warning

Ensure your firewall allows incoming TCP connections on the port metran is running on (default i 8080).

Links

About

(iOS) Media Transfer utility written in Rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Contributors

Languages