
Copyparty Android setups turn an ordinary phone into a pocket file server. Because copyparty is written in Python, it runs inside Termux, the popular Linux environment for Android, and serves your phone’s storage to any browser on the same Wi-Fi network. Alongside that, a separate companion app called PartyUP lets you send photos and files from your phone to any copyparty server with a single tap. This guide covers both, explains the permissions involved and shares practical tips for battery life and reliability.
Two ways copyparty works with Android
It helps to separate the two roles a phone can play.
- As a server, the phone runs copyparty itself and shares its storage with laptops and other devices nearby.
- As a client, the phone uploads to a copyparty server running elsewhere, such as a home PC or NAS.
For the client role, you do not need to install anything at all: the copyparty web interface works in any mobile browser, including uploads. PartyUP simply makes sharing faster. For the server role, Termux is required.
Installing Termux correctly
Termux is available from several sources, but the copyparty documentation and the Termux project itself recommend F-Droid. The version in the Google Play Store has historically lagged behind and can fail to install packages. Install the F-Droid client, then install Termux from it.
The official instructions also suggest installing Termux:API, a companion app that lets Termux interact with Android features. It is optional for basic file serving but useful later.
Installing copyparty inside Termux
Open Termux and run the following commands one at a time. The first updates the package lists, the second asks Android for permission to reach your shared storage, and the rest install Python and copyparty.
pkg upgrade
termux-setup-storage
pkg install python termux-api
python -m ensurepip
python -m pip install --user -U copypartyPython installs user-level programs into a folder that is not on the PATH by default. Add it so the copyparty command is found, and make the change permanent.
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcStarting the server
With everything installed, start copyparty from anywhere in Termux.
copyparty --qrThe --qr option prints a QR code containing the server address. Scan it with another phone or a laptop camera, and the copyparty interface opens immediately. By default, copyparty shares the folder you started it from. Termux’s home folder is private to the app, so to share your photos or downloads, point copyparty at shared storage.
copyparty --qr -v ~/storage/shared:shared:rThe ~/storage folder is created by termux-setup-storage and contains shortcuts to your internal storage, downloads, camera folder and other locations.
Adding accounts before sharing
A phone is a personal device full of private data, so it is especially important to restrict access before other people connect. Create an account and grant write access only to that account.
copyparty -a me:ChooseAStrongPassword -v ~/storage/shared:shared:r:rw,meAnonymous visitors can now read the shared folder, while uploads require logging in. Remove the anonymous read permission entirely if the phone holds anything sensitive.
Enabling thumbnails on a phone
Without extra packages, copyparty shows generic icons. Thumbnails need Pillow and FFmpeg, which Termux can install, although together they take around 130 megabytes of space.
pkg install ffmpeg
python -m pip install --user PillowGenerating thumbnails uses processor time and battery, so on older phones you may prefer to leave them off and rely on file names instead.
Using PartyUP to upload from Android
PartyUP is the official Android client for copyparty, published on F-Droid. It does one job well: when you share a file or link from any app, PartyUP appears in the share menu and uploads it to the copyparty server you configured.
Setting it up takes a minute.
- Install PartyUP from F-Droid.
- Open it and enter the address of your copyparty server, including the port.
- Enter a password if the server requires one.
- Share a photo from your gallery and choose PartyUP from the list.
Recent versions can create share links with optional lifetimes, show a QR code after uploading and send several files as a single share. Uploads are verified with checksums so you know the file arrived intact. Note that the app focuses on simple uploads; very large files are better uploaded through the browser, which uses copyparty’s resumable uploader.
Keeping the server running
Android aggressively stops background apps to save battery, which can interrupt a long transfer. A few adjustments help.
- Keep Termux in the foreground during large transfers, or pull down its notification and acquire a wakelock.
- Exclude Termux from battery optimisation in Android settings.
- Plug the phone into a charger if it will serve files for a long time.
- Disable automatic Wi-Fi switching, which can change the phone’s address mid-session.
These steps make a big difference on phones from manufacturers known for strict battery management.
Practical uses for copyparty on a phone
Running a server on a phone is more useful than it first sounds. Common situations include the following.
- Copying photos to a laptop without cables, cloud uploads or special software.
- Receiving files from friends at a gathering by sharing a QR code for an upload-only folder.
- Turning an old phone into a tiny, low-power file server on the home network.
- Moving files between devices while travelling, where no other network service is available.
Security and privacy on mobile
A phone moves between networks, which changes the risk profile. Only run copyparty on networks you trust, such as your home Wi-Fi or a hotspot you control. On public Wi-Fi, other people on the same network could reach the server. Always use accounts, share the narrowest folder possible, and stop the server when you are finished by pressing Ctrl+C in Termux or closing the session.
Troubleshooting on Android
Most problems on Android have simple causes.
- If the copyparty command is not found, the PATH line was not added or the shell was not reloaded.
- If shared folders appear empty, run termux-setup-storage again and grant the storage permission.
- If other devices cannot connect, confirm that both are on the same network and that the phone’s Wi-Fi has not switched to mobile data.
- If installation fails, make sure Termux came from F-Droid rather than the Play Store.
Running copyparty on an old phone permanently
An unused phone can become a tiny, silent file server that sips power. Leave it plugged in, keep it on your home Wi-Fi, and set Termux to start copyparty automatically. The Termux:Boot add-on runs scripts when the phone starts, so a short script that launches copyparty with your preferred options turns the phone into an appliance.
Give the phone a fixed address on your network, either through a reservation in the router or a static setting on the phone, so bookmarks and other devices always find it. Disable automatic system updates that might restart the phone unexpectedly, and check on it occasionally to install security patches manually.
Storage is the main limitation. Internal storage on older phones is modest, but many models accept microSD cards, which copyparty can share through Termux’s storage links once Android grants access.
Uploading from Android without any app
The copyparty web interface is fully usable in a mobile browser, so you do not need PartyUP to upload files. Open the server address, tap the upload area, and choose photos or files from the system picker. For large videos, the browser uploader sends chunks in parallel and resumes after interruptions, which is ideal on mobile networks that drop out briefly.
Making the address easy to reach
Typing an IP address and port on a phone keyboard is tedious. Besides the QR code that copyparty prints with the --qr option, you can add the server to your home screen from the browser menu. It then opens like an app. On networks that support it, copyparty’s zeroconf announcements also help other devices discover the server automatically.
Copying files between phone and computer in practice
A typical session shows how quick the process becomes once everything is set up. Start copyparty in Termux with your usual options and the --qr flag. On your laptop, scan the code with the webcam or type the address shown in the console. The laptop’s browser now shows the phone’s shared folders. Select several photos and download them as a single zip archive, or drag files from the laptop into an upload folder on the phone. When you are finished, return to Termux and stop the server with Ctrl+C, so the phone is no longer sharing anything.
This routine replaces cables, cloud services and messaging apps for moving files between your own devices. It also works when there is no internet connection at all, as long as both devices share a local network, such as the phone’s own hotspot.
Finally, remember that Android updates occasionally change how storage permissions work. If shared folders suddenly appear empty after a system update, run termux-setup-storage once more and grant access again. It takes seconds and restores everything, because copyparty itself keeps no record of the files beyond what it reads from storage each time a folder is opened.
Frequently Asked Questions
Is there an official copyparty app for Android?
The official app, PartyUP, is an upload client available on F-Droid. To run the server itself on a phone, you use copyparty inside Termux.
Do I need to root my phone to run copyparty?
No. Termux runs without root, and copyparty uses a high port that ordinary apps are allowed to open.
Can I share my camera folder with copyparty on Android?
Yes. After running termux-setup-storage, point copyparty at the folders under ~/storage, which include your camera, downloads and internal storage.
Why should I install Termux from F-Droid?
The Play Store version has fallen behind and may fail to install packages. The F-Droid release is the one the Termux project maintains.
Does copyparty drain the battery on a phone?
Serving files uses modest power, but thumbnails and transcoding are more demanding. Keep the phone charging for long sessions and disable media features on older devices.
Conclusion
Copyparty Android support works in two complementary ways. Inside Termux, the full server turns your phone into a capable, portable file share that any browser can reach, while PartyUP makes uploading from your phone to another copyparty server effortless. Install Termux from F-Droid, add accounts before sharing, and manage battery settings sensibly, and your phone becomes a surprisingly practical part of your file-sharing setup.


