A simple LAN file transfer tool with web interface support.
- 🚀 Command-line interface for Linux and macOS
- 📱 Web interface for file uploads and text saving
- 🔗 Automatic URL display with QR code generation
- 📁 Customizable save directory
- 🔧 Configurable port (default: 7070)
- 💾 Large file streaming support
- 🌐 Automatic local IP detection
- Rust 1.75.0 or higher
cargo build --release# Use default settings (port 7070, save to current directory)
cargo run
# Specify port
cargo run -- --port 8080
# Specify save directory
cargo run -- --save-dir /path/to/save
# Show all options
cargo run -- --help-
After starting the program, the terminal will display:
- Server startup information
- Access URL
- QR code (for mobile scanning)
-
Open the displayed URL in a browser or scan the QR code with your phone
-
In the web interface:
- Text Saving: Enter text content, optionally specify filename
- File Upload: Select one or more files to upload
-
Files and text will be saved to the specified directory (default: program execution directory)
Usage: net-transfer [OPTIONS]
Options:
-p, --port <PORT> Server port [default: 7070]
-s, --save-dir <SAVE_DIR> File save directory
-h, --help Show help information
- Backend: Rust + Axum (async web framework)
- Frontend: Pure HTML/CSS/JavaScript
- File Processing: Streaming support for large files
- Networking: Automatic local IP detection, URL generation
- QR Code: Terminal character QR code display
- This tool is designed for LAN file transfer only
- Server listens on all network interfaces (0.0.0.0)
- Use only in trusted network environments
- Stop the service after use
MIT License