A blazing-fast, zero-config LAN file sharing tool written in Rust. Start a lightweight HTTP file server with a clean Web UI and QR code access — all in one command.
- Recursive directory scanning
- Predictable and safe path handling
- Automatic LAN IP detection
- MIME type detection
- Graceful shutdown (
Ctrl+C) - Structured access logs (
tracing+tower-http)
- Beautiful startup banner
- Optional QR code for mobile access
- Auto-open browser on startup
- Configurable host binding (
--local-only) .lanjetignoresupport (similar to.gitignore)
- Clean HTML interface (no JS, no external assets)
- Click to download files
- File icons based on MIME type
- File metadata (size, type, modified time)
cargo install lanjetcargo binstall lanjetShare the current directory:
lanjetShare a specific path:
lanjet --path /path/to/filesStart on a different port:
lanjet --port 8080Local-only mode:
lanjet --local-onlyShow QR code in banner:
lanjet --show-qrcode| Flag | Description | Default |
|---|---|---|
--path |
File or directory to share | . |
--port |
Port to bind | 80 |
--ignore |
Ignore rule file | .lanjetignore |
--local-only |
Bind only to localhost | false |
--show-qrcode |
Display QR code in banner | false |
--no-browser |
Disable auto-open browser | false |
--no-banner |
Disable banner | false |
LanJet supports ignore files similar to .gitignore.
Example .lanjetignore:
*.log
*.tmp
.DS_Store
node_modules/
target/
After starting the service, open:
http://<LAN-IP>:<PORT>
You will see a clean interface listing all files.
This project is licensed under the MIT License.
LanJet — Making LAN file sharing fast, simple, and beautiful.