A Qt/QML app that discovers devices on your LAN via UDP and establishes a TCP session to share files peer-to-peer.
When the app launches, it broadcasts a UDP discovery packet on the local network and listens for discovery packets from peers.
Discovered devices appear with their IP address. Clicking a device sends a connection request; when the peer accepts, a confirmation
message is exchanged and a TCP connection is established. Both sides then share an identical UI for sending and receiving files.
- Automatic LAN discovery using UDP broadcast/multicast.
- Peer confirmation handshake and TCP session setup.
- Bidirectional file sharing with progress feedback.
- Clean, minimal UI built with QML.
- Works on the same subnet with no external server.
git clone https://github.com/michelmichy7/LAN_fileshare.git cd nearby-file-sender cmake -S . -B build -DCMAKE_PREFIX_PATH="<Qt6 install>" cmake --build build --config Release ./build/NearbyFileSender
- Launch the app on two (or more) devices connected to the same network.
- Wait for peers to appear in the device list (discovered via UDP).
- Click a device entry to send a connection request.
- On the peer, accept the request when prompted.
- After the TCP session is established, drag & drop or choose files to send.
MIT License. See LICENSE for details.
