Simple command-line file transfer tool that uses mDNS for device discovery on local networks.
- Automatic peer discovery using mDNS/Bonjour
- Real-time transfer progress display
- No configuration needed - just run and transfer
- Supports files of any size
- Simple command-line interface
- Go 1.25 or higher
- Local network that allows mDNS traffic
- Firewall access for ports 24242 (discovery) and 24243 (transfer)
git clone https://github.com/tkalum/file-Tranfer.git
cd file-Tranfer
go build ./cmd/file-transfer./file-transfer -s filename.txtThe sender will:
- Announce its presence on the network
- Wait for a receiver to connect
- Display transfer progress
./file-transferThe receiver will:
- Search for available senders on the network
- Connect to the first discovered sender
- Save received file with "receive_" prefix
- Show download progress
- Discovery Protocol: mDNS (Bonjour)
- Service Name: _filetransfer._tcp
- Discovery Port: 24242
- Transfer Port: 24243
- Transfer Buffer: 64KB chunks
- Ensure both devices are on the same local network
- Check firewall settings if devices can't discover each other
- Look for files with "receive_" prefix in the working directory
- Make sure ports 24242 and 24243 are not in use
- Files are saved in the current working directory
- Transfer speed depends on local network performance
- Large files are supported but may take longer to transfer
- Only one file can be transferred at a time