LocalSend StartWriteStream "File creation failed" Error
LocalSend shows PlatformException (StartWriteStream, File creation failed) or No Permission? What the errors suggest, what to check, and how to report it.
TroubleshootingUpdated 5 min read
On this page
You sent a file with LocalSend and got "PlatformException (StartWriteStream, File creation failed, null, null)" or "No Permission: You have not granted the necessary permission." Some people on Windows get a 500 status when sending to an iPhone on a hotspot instead.
LocalSend is a separate project, and we don't make it. People report these errors in its public issue tracker, and none of the reports we found gives a confirmed cause. Below is what each message suggests, then checks ordered from cheapest to most effort. Treat them as things to try, not guaranteed fixes.
Why it happens
Nobody has published a root cause. This is what each message suggests, based on its wording and the reports:
- "No Permission" (reported Android 10 to Windows, July 2025). An operating-system permission was refused. It could be about reading the source file or saving to the destination.
- "StartWriteStream, File creation failed" (reported November 2025). The name points at opening a file for writing. The report doesn't say which device raised it. Likely suspects are a save folder the app can't write to, a full disk, or a restricted storage location.
- Status 500 from
https://172.20.10.1:53317/api/localsend/v2/upload(reported March 2026, Windows laptop to an iPhone on a Personal Hotspot). A 500 is a reply from the other device, so the two devices did reach each other. Firewalls, VPNs and discovery are less likely culprits than whatever the receiving app did with the upload. - Batch 500 when re-sending a folder that already exists (reported November 2026). The report shows the second send failing. Why it fails is not established.
| What you see | What it suggests | Try |
|---|---|---|
| "No Permission" | A permission was refused on the sender or receiver | Fixes 1 to 3 |
| "StartWriteStream, File creation failed" | A file couldn't be created or opened | Fixes 1 to 3 |
Status 500 at /upload over a hotspot | The receiver answered, then failed the upload | Fix 4 |
| Batch 500 on a repeated folder | Unknown; may involve the existing folder | Fix 5 |
Step-by-step fixes
Fix 1: Find out which device fails
- Pick one small file, such as a short text file, in an ordinary folder like Downloads.
- Send it from device A to device B.
- Send a different small file from device B to device A.
- Note which direction fails.
If only one direction fails, fix that receiver (or the sender that can't read its source). If both fail the same way, check both devices.
Fix 2: Change the save folder on the receiving device
Symptom: the error appears on every transfer, not only one file.
The app may point at a folder it can no longer write to, such as one that was moved, deleted or sits on removable storage.
- Open LocalSend on the receiving device and go to its settings.
- Find the setting for where received files are saved. The label may differ by version and platform.
- Switch to a standard folder such as Downloads.
- Send one small file.
- If that works, send the real files.
Fix 3: Check permissions, free space and the source file
Symptom: the errors started after an OS update, a reinstall or a permissions reset.
On Android, review LocalSend's permissions in the system Settings app. Menu names for file and media access differ by phone maker and Android version, so search Settings for "LocalSend" if you can't find them. Google's Android Help page on app permissions explains how to review and change them. If a permission is off, turn it on, then fully close and reopen LocalSend.
Then check the basics:
- Confirm the receiving device has free space for the whole transfer.
- On Windows, use a normal user folder such as Downloads or Documents as the save location.
- If the sender is the problem, copy the file to Downloads and send the copy. If the copy sends and the original doesn't, the original's location or permissions are the problem.
Fix 4: The 500 error to an iPhone hotspot (unverified)
Symptom: a Windows laptop on an iPhone's Personal Hotspot gets status code 500 at the upload step.
No cause is confirmed for this report, so the steps below are things to test, not a known fix:
- Keep LocalSend open and on screen on the iPhone while the transfer runs.
- Send one small file first. If that works, size or file count may matter.
- Turn the hotspot off and on, reconnect the laptop, and try again.
- Try the other direction (iPhone to laptop).
- If you have a regular Wi-Fi router, put both devices on it instead of the hotspot.
Fix 5: Re-sending a folder that already exists (unverified)
Symptom: the first send of a folder works, and a second send of the same folder fails with a batch 500.
Nothing confirms that the existing folder is the cause. If you want to test that idea, rename the earlier copy on the receiving device, or rename the folder on the sender, then send again.
Checklist before you try again
- Both devices are on the same network, and LocalSend is open on both.
- The receiver's save folder is a standard one such as Downloads.
- Android file or storage permission is allowed for LocalSend.
- The receiving device has free space.
- You tested one small file in each direction.
- You tried a normal router instead of a hotspot, if a hotspot was involved.
If nothing works
Report it to the LocalSend developers through their public issue tracker, since the app is theirs. Add to the closest matching existing report instead of opening a new one. Include:
- the exact error text
- the OS version and LocalSend version on both devices
- which device was sending and which was receiving
- whether you sent a single file or a folder
- whether the save folder was the default or one you chose
- whether it fails every time or only with certain files
A message you can adapt:
LocalSend error when sending from [Android 10 / Windows 11 / iPhone] to [device].
Exact error: PlatformException (StartWriteStream, File creation failed, null, null)
Sender: [OS and LocalSend version]
Receiver: [OS and LocalSend version]
Sending: [one file / folder of N files, total size]
Save folder on receiver: [default / custom path]
Network: [home router / iPhone hotspot]
Happens: [every time / only with certain files]
Already tried: new save folder, storage permission toggled, small test file in both directions.Common questions
Is "StartWriteStream" a network error?
Not by its name. It points at opening a file for writing, which suggests a storage problem. The devices usually found each other already, or you wouldn't have reached the transfer step.
Does reinstalling LocalSend help?
It resets permissions and settings, so it may help if a stale permission or bad save folder is the cause. The reports we found don't confirm it as a fix, so try the quicker checks first.
Does the error mean my file is damaged?
Nothing in the reports suggests so. The error is about creating or opening a file, not about its contents.