Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

kayawebs/net-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net Transfer

A simple LAN file transfer tool with web interface support.

中文文档

Features

  • 🚀 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

Installation & Usage

Prerequisites

  • Rust 1.75.0 or higher

Build

cargo build --release

Run

# 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

How to Use

  1. After starting the program, the terminal will display:

    • Server startup information
    • Access URL
    • QR code (for mobile scanning)
  2. Open the displayed URL in a browser or scan the QR code with your phone

  3. In the web interface:

    • Text Saving: Enter text content, optionally specify filename
    • File Upload: Select one or more files to upload
  4. Files and text will be saved to the specified directory (default: program execution directory)

Command Line Options

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

Tech Stack

  • 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

Security Notes

  • 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

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages