Duck Share is a fork of LocalSend that sends files and messages between nearby devices over your local network, and adds NFC tap to share on Android.
Duck Share moves files, folders and text between devices on the same network. It needs no internet connection, no account and no cloud. Files go straight from one device to the other over an encrypted connection.
On Android, you can hold two phones back to back and the file goes across, much like AirDrop or Quick Share. This works even when Duck Share is closed on both phones: you share from any app with Share → Duck Share, and the receiving phone wakes up from the tap and saves the file in the background.
Duck Share speaks the same protocol as LocalSend, so it works with every LocalSend device on Windows, macOS, Linux, iOS and Android. Everything LocalSend does still works. This page focuses on what Duck Share adds. The project website is n1th1n-19.github.io/duck-share.
- Tap to share (Android): Hold two phones back to back to send. There is no pairing and no picking a device from a list.
- Works with the app closed: Share from any app through the system share sheet. The receiving phone wakes up from the tap and saves the file in the background.
- Clear feedback: Both phones vibrate on touch and again when the transfer is done. The sender sees live progress, and the receiver gets a "Received…" notification that opens the file.
- NFC spot guide: The app shows where the NFC antenna sits on your phone. On Android 14 and newer the position is read from the phone; on older versions it is an estimate.
- Quick Settings tile: Turn tap to share on or off from the Tap to share tile in Android Quick Settings.
- Trusted devices: Files from devices you trust arrive without a prompt, skip your receive PIN, and text they share is copied to your clipboard.
- Blocked devices: Requests from blocked devices are declined, and those devices are hidden from the nearby list.
- History with previews: Received photos and videos show thumbnails in the history. Tap one to open it.
- First-start onboarding (Android): A short setup walks you through notifications, NFC, your device name and adding the Quick Settings tile.
- LocalSend compatible: Send to and receive from LocalSend on all its platforms, including share via link and the usual receive options.
- Command line client: The repository includes
localsend-cli, a terminal client on the same protocol.
Download the APK from the latest release on GitHub. If you are unsure which build to pick, choose arm64-v8a.
Because Duck Share is a new independent app, Android's Play Protect may warn you before installing it. Tap More details → Install anyway. Every release is signed with the same Duck Share key.
You need Flutter (the version is pinned in the repository's .fvmrc, used through fvm) and Rust.
git clone https://github.com/n1th1n-19/duck-share.git
cd duck-share/app
fvm flutter pub get
fvm flutter run
Use fvm flutter rather than a system-wide flutter to avoid build issues from a version mismatch.
To build release packages, run these from the app directory:
| Platform |
Command |
| Android APK |
fvm flutter build apk |
| Android App Bundle |
fvm flutter build appbundle |
| iOS |
fvm flutter build ipa |
| macOS |
fvm flutter build macos |
| Windows |
fvm flutter build windows (MSIX: fvm flutter pub run msix:create) |
| Linux |
fvm flutter build linux (AppImage: appimage-builder --recipe AppImageBuilder.yml) |
Release APKs need a signing key. Create app/android/key.properties, or sign with the debug key.
The first time you open Duck Share on Android, onboarding guides you through:
- Your NFC spot: where to hold your phone against another phone.
- A few permissions: allow Notifications so you know when a file arrives, and turn on NFC so you can tap phones together. You can change these later in Settings.
- Name this phone: the name others see when you share. You can also tap Add to Quick Settings to add the Tap to share switch.
Both phones need NFC and must be on the same Wi-Fi.
- In any app (Gallery, Files and so on), tap Share → Duck Share. A sheet slides up: Hold near another phone.
- Hold the phones back to back, with the camera ends lined up.
- Pull them apart when both vibrate. The sheet shows the progress, then Sent.
- To send the same files to more phones, tap them too.
While sending, Hide (or Back) keeps the transfer going in the background, and Open Duck Share shows the transfer in the app.
You can also start inside Duck Share: select files on the Send tab, then tap another phone. It works the same way.
You do not need to do anything. Keep your screen on and unlocked. Duck Share can be closed. The phone vibrates on touch and again when the file is saved, and the notification opens the file.
The touch only exchanges the address and security fingerprint, which takes well under a second. The file itself travels over Wi-Fi, so you can move the phones apart while it transfers.
Taps from a locked phone, or from a device that was not tapped, show the normal accept prompt instead of saving straight away.
Open Settings → Tap to share → Where is NFC on my phone? The guide shows the back of your phone:
- On phones that report the antenna position (Android 14 and newer), a blue spot marks it. Touch the backs of both phones at the spot and hold until they buzz.
- Otherwise, NFC is usually in the upper middle of the back. Slide the phones slowly against each other until they buzz.
Use the Tap to share tile in Android Quick Settings, or the Tap to share switch in Duck Share's settings.
When an unknown device sends you something, the receive screen asks Trust this device?
- Always allow: the device becomes trusted and is also listed under favorites. Trusted devices skip the prompt and the receive PIN, and text they share is copied to your clipboard (you see "Copied text from ..."). You are not asked again.
- Block: the request is declined, and future requests from that device are declined silently. The device is also hidden from the nearby list.
To change this later, long-press a device on the Send tab, or open Settings → Trusted & blocked devices. That page lists your trusted and blocked devices, with Remove trust and Unblock actions.
Open History from the Receive tab. Received photos and videos show previews, and tapping an entry opens the file. Each entry also offers Open file, Show in folder, Information and Delete from history. Use Delete history to clear the whole list.
Everything from LocalSend still works across all platforms:
- Send: on the Send tab, pick files, folders, text or media, then choose a nearby device from the list. You can also send to a device by IP address, or add it to favorites so it is probed directly.
- Receive: keep Duck Share open on the Receive tab and accept the incoming request, or turn on Quick Save to accept automatically.
- Share via link: serve files to any browser on your network, with optional PIN.
The terminal client localsend-cli speaks the same protocol, so it works with Duck Share devices. Run localsend-cli --help for every option.
localsend-cli send report.pdf photo.jpg ./project-backup
localsend-cli send --to "Cute Tomato" report.pdf
localsend-cli send --to 192.168.27.26 --text "hello"
- Directories are collected recursively.
--to takes an exact device alias or an IP address. Without --to, the command opens the list of discovered devices. An IP address is probed directly over HTTPS on the default port.
--text sends a message instead of files. Pass - to read the text from stdin. It requires --to.
These appear under Settings → Tap to share on Android phones that support it:
| Setting |
What it does |
| Tap to share |
Turns tap to share on or off (same as the Quick Settings tile). |
| Auto-accept from tapped phones |
Saves files from a phone you physically tapped without asking. |
| Where is NFC on my phone? |
Opens the NFC spot guide. |
| Setting |
What it does |
| Quick Save |
Accepts every incoming request automatically. |
| Quick Save for "Favorites" |
Accepts requests from favorites automatically. |
| Require PIN |
Asks senders for a PIN. Trusted devices skip it. |
| Save to folder |
Where received files go (Downloads by default). |
| Save media to gallery |
Saves photos and videos to the gallery. |
| Save to history |
Keeps received files in the history list. |
| Setting |
Default |
| Port |
53317 |
| Encryption |
On |
| Device name |
Generated alias or system name |
Changing the port or multicast address can make you invisible to other devices.
- Portable mode: create an empty
settings.json next to the executable. Settings are stored there instead of the default location.
- Start hidden: pass
--hidden to start in the system tray only.
The CLI resolves each setting in this order: command-line flag, environment variable, config.toml, default. The config file lives in $XDG_CONFIG_HOME/localsend-cli, or ~/.config/localsend-cli on every platform.
| Flag |
Environment variable |
Default |
--alias |
LOCALSEND_ALIAS |
The hostname |
--port |
LOCALSEND_PORT |
53317 |
--destination |
LOCALSEND_DESTINATION |
The Downloads folder |
Duck Share has a Flutter app on top of a Rust core. The app talks to the core through an isolates layer, while the CLI and a WebRTC signaling server use the core directly.
Devices talk to each other over a REST API using HTTPS. Each device generates its own TLS certificate, and a device's identity is the SHA-256 fingerprint of that certificate. Devices find each other through multicast discovery on the local network. See the LocalSend protocol for details.
Tap to share adds an NFC handshake in front of a normal transfer:
- The receiving phone emulates an NFC card using Android host card emulation. When tapped, it answers with its alias, port, local IP addresses and certificate fingerprint.
- The sending phone reads that card in NFC reader mode.
- The sender connects over HTTPS, pinned to the fingerprint it just read, and starts a regular LocalSend transfer over Wi-Fi.
Because the fingerprint comes from physical contact, the connection is harder to intercept than one found through LAN discovery.
Trust is tied to a device's TLS certificate, so another device cannot pretend to be a trusted one. On Android, a background service keeps the server running after you close the app, which is what lets a tap wake the phone and save the file.
- Android: Android 7.0 or newer.
- Tap to share: two Android phones with NFC and host card emulation, connected to the same Wi-Fi. NFC must be on, and the receiver's screen must be on and unlocked.
- NFC spot detection: exact on Android 14 and newer, estimated on older versions.
- Other platforms: Duck Share builds for Windows, macOS, Linux and iOS, and talks to LocalSend on all of them.
- Network: incoming TCP and UDP on port
53317, and outgoing TCP and UDP on any port.
- Permissions (Android): notifications, NFC, storage or media access, and local network access (required on Android 17 and newer).
- Building from source: Flutter (version pinned in
.fvmrc) and Rust.
Problem: Tapping does nothing. Turn on NFC on both phones. Keep the receiver's screen on and unlocked. Line up the camera ends and hold still for a second. Use the NFC spot guide if you are unsure where to touch.
Problem: Taps are unreliable on a Pixel phone. Google's own Tap to Share (Quick Share) competes for NFC. Turn it off under Settings → Connected devices → Connection preferences → Quick Share.
Problem: "Could not reach ..." or "Could not send". Both phones must be on the same Wi-Fi network.
Problem: A tap shows the accept prompt instead of saving. This is expected when the sending phone is locked or when the request did not come from the phone you tapped. Turn on Auto-accept from tapped phones to skip the prompt for tapped phones.
Problem: A device is not visible. Allow Duck Share through your firewall on port 53317. On Linux with ufw, run sudo ufw allow 53317. With firewalld:
sudo firewall-cmd --permanent --add-port=53317/tcp
sudo firewall-cmd --permanent --add-port=53317/udp
sudo firewall-cmd --reload
Also disable AP isolation on your router (guest networks often enable it). On Windows, set your network to "private". On macOS and iOS, toggle the "Local Network" permission under Privacy. If a VPN is active, allow local traffic or turn it off.
Problem: A device still does not show up. Send manually to the receiver's IP address. If that works, add the device to favorites so it is probed directly.
Problem: A device you blocked has disappeared. Blocked devices are hidden from the nearby list. Unblock it in Settings → Trusted & blocked devices.
Problem: Transfers are slow. Use a 5 GHz network, and consider turning off encryption on both devices.
Duck Share is licensed under the Apache License 2.0, like the original. It is based on LocalSend by Tien Do Nam and contributors. "LocalSend" and its logo belong to their owners. Duck Share is not affiliated with or endorsed by the LocalSend project.