Home / Guide / Copyparty remote access

Copyparty Remote Access: Reaching Your Files Securely From Anywhere

Reach copyparty away from home safely. Compare VPNs, Cloudflare tunnels, reverse proxies with HTTPS and port forwarding, and harden the server before exposing it.

Laptop with a photo gallery and a smartphone on a table lit by warm evening light

Copyparty remote access is the step that turns a handy home file server into something you can use from a hotel, an office or a friend’s house. It is also the step that deserves the most care, because anything reachable from the internet will be probed by automated scanners within hours. The good news is that several well-understood approaches exist, and copyparty’s documentation addresses the most common ones directly. This guide compares them, explains the settings copyparty needs behind each, and lists the hardening steps to complete before anything goes public.

Start with the local network

By default, copyparty listens on your local network only. Devices at home can reach it at an address such as http://192.168.1.20:3923, but the wider internet cannot, because your router does not forward unsolicited traffic inside. This is a safe starting point. Keep it this way until you have decided how remote access should work and have prepared the server accordingly.

Option one: a private VPN

A virtual private network connects your phone or laptop to your home network as though you were sitting on the sofa. copyparty itself stays private; only devices with VPN credentials can reach it.

WireGuard is fast and widely supported, and many routers and NAS systems include it. Mesh services such as Tailscale build on WireGuard and remove most of the configuration, connecting your devices automatically even behind restrictive internet connections.

Strengths and limitations

A VPN is the safest option, because copyparty never faces the open internet. The limitation is that every device needs the VPN installed, which makes it awkward for sharing files with people outside your household.

Option two: a Cloudflare tunnel

A tunnel publishes copyparty through an outbound connection from your network to a provider’s edge, so you do not open any ports on your router. copyparty’s documentation describes this approach for home servers behind carrier-grade NAT, where port forwarding is impossible, and for servers without a reverse proxy.

For a quick experiment, a temporary quick tunnel needs nothing more than the cloudflared program and one command.

Terminal
cloudflared tunnel --url http://127.0.0.1:3923

For permanent use, the documentation recommends a named tunnel connected to your own domain. When the tunnel is managed from the Cloudflare dashboard, set the service type to HTTP and the address to 127.0.0.1:3923.

Telling copyparty the real visitor address

Behind a tunnel, every request appears to come from the local cloudflared process. To log and rate-limit the real visitors, start copyparty with the header Cloudflare uses for the original address.

Terminal
copyparty --xff-hdr cf-connecting-ip

Option three: a reverse proxy with HTTPS

If you already run a web server, a reverse proxy such as nginx, Caddy or Traefik can publish copyparty under a domain name with a proper HTTPS certificate. The proxy owns ports 80 and 443, and forwards requests to copyparty on its local port.

The copyparty repository includes an example nginx configuration in its contrib folder. Whichever proxy you use, check two settings.

  • Allow large request bodies, so upload chunks are not rejected.
  • Pass the client address in a forwarding header and tell copyparty which header to trust.

Caddy is popular for home use because it obtains and renews certificates automatically with very little configuration.

Option four: direct port forwarding

The most direct approach forwards a port on your router to copyparty. It works, and it is sometimes the only practical option, but it exposes the server directly to the internet with no intermediary.

If you choose port forwarding, take extra precautions.

  • Use HTTPS, ideally with a valid certificate rather than a self-signed one.
  • Require accounts on every volume and remove anonymous write access.
  • Consider a non-standard external port to reduce automated noise.
  • Keep copyparty updated without delay when security releases appear.

Comparing the options

Each method balances convenience against exposure.

  • A VPN is the most private and suits your own devices.
  • A tunnel avoids router changes and works behind restrictive connections.
  • A reverse proxy suits people already running other web services.
  • Port forwarding is simple but carries the most exposure.

Many people combine them, using a VPN for administration and a tunnel or proxy for sharing specific folders with others.

Hardening copyparty before going public

Whatever route you pick, prepare the server first. These steps matter more than the choice of tunnel or proxy.

Accounts and permissions

Review every volume’s access list. Remove asterisk permissions that allow anonymous uploads, deletion or moving unless you deliberately need them. Give each person their own account rather than sharing one password.

Disable what you do not need

Turn off protocols you do not use remotely. FTP, SMB and TFTP are disabled by default; keep them that way unless they are essential. The SMB server in particular is described in the documentation as unsuitable for use over the internet.

Use shares for temporary access

Instead of creating accounts for one-off recipients, copyparty can generate share links for selected files or folders, optionally with an expiry time. Recipients get exactly what you intended and nothing more, and the link stops working when it expires.

Watch for updates

Subscribe to the release notifications on the project’s GitHub page. When a release mentions a security fix, update promptly. The project has a good record of fixing reported issues quickly, but fixes only protect servers that install them.

Testing remote access properly

Test from outside your network rather than from home, because many routers handle internal requests to their own public address differently. Turn off Wi-Fi on your phone and use mobile data, then open the remote address. Log in with an ordinary account and confirm that you can see and do only what you intended. Try a large upload, then interrupt the connection and resume it, to check that the proxy or tunnel handles chunked uploads correctly.

Performance over the internet

Remote transfers are limited by your home upload speed, which is often much lower than the download speed advertised by your provider. copyparty’s parallel chunked uploads make the most of what is available and recover gracefully from interruptions, but they cannot exceed the connection itself. For streaming music to a phone on mobile data, audio transcoding can reduce bandwidth considerably.

Using a domain name

Remote access is far more pleasant with a memorable address than with a raw IP address and port. If you own a domain, create a subdomain such as files for your server. With a reverse proxy or tunnel, the subdomain points to the proxy, which forwards requests to copyparty. With port forwarding, a dynamic DNS service keeps the name pointing at your home connection even when your provider changes its public address.

A domain also makes trusted HTTPS certificates straightforward. Services such as Let’s Encrypt issue free certificates for domains you control, and both Caddy and Cloudflare handle renewal automatically.

Monitoring access once you are online

After publishing copyparty, keep an eye on who is connecting. The server log records logins, uploads and failed attempts. A sudden rise in failed logins from unfamiliar addresses is a sign that automated scanners have found the server. copyparty includes protections against repeated failed logins, and a reverse proxy can add rate limiting. Reviewing the log weekly for the first month helps you understand normal patterns, so anything unusual stands out later.

Rolling back if something goes wrong

Before opening your server, note exactly what you changed: router rules, proxy configuration, DNS records and copyparty options. If anything behaves unexpectedly, you can reverse each step quickly and return to a local-only setup while you investigate. Making remote access a reversible, documented change rather than an improvised one is one of the most effective security habits.

Choosing the right option for your household

For a single person who wants their own files on the go, a mesh VPN is usually the best balance of security and convenience: install it on the server and your phone, and you are finished. For a family sharing photos with relatives, a tunnel or reverse proxy with share links works better, because recipients need nothing installed. For a small business, a reverse proxy with a proper domain, HTTPS and individual accounts offers a professional result that is easy to audit. Matching the method to the people involved is more important than choosing the most technically impressive solution.

Protecting uploads from the outside world

Uploads deserve particular care once a server is public. An anonymous upload folder exposed to the internet can quickly fill with unwanted files. Require an account for uploads, or use an upload-only folder that only trusted people know about, and consider limits on file size and total volume size. copyparty supports upload rules per volume, so you can allow generous uploads on your private network while keeping strict limits on anything reachable from outside. Regularly reviewing what has arrived keeps the server tidy and quickly reveals misuse.

Above all, treat remote access as an ongoing responsibility rather than a single task. Review accounts every few months, remove share links that are no longer needed and confirm that your proxy or tunnel software is updated alongside copyparty itself. A few minutes of attention each season keeps a remotely reachable server as safe as the day you set it up.

Frequently Asked Questions

What is the safest way to access copyparty remotely?

A VPN such as WireGuard or Tailscale is the safest, because copyparty never faces the open internet. Only your own devices can reach it.

Can I use copyparty remotely without opening router ports?

Yes. A Cloudflare tunnel or a mesh VPN both work through outbound connections, so no port forwarding is needed.

Why do my copyparty logs show only one visitor address behind a tunnel?

The tunnel forwards every request from the same local process. Start copyparty with the forwarding-header option so it records the real visitor address.

Do I need HTTPS for remote access?

Yes, whenever traffic crosses the internet. A reverse proxy or tunnel can provide trusted HTTPS certificates with little effort.

How can I share a single file with someone outside my home?

Create a share link for that file, optionally with an expiry time, rather than giving the person an account.

Conclusion

Copyparty remote access is entirely achievable with care. A VPN offers the most privacy, a Cloudflare tunnel avoids router changes, a reverse proxy integrates neatly with existing web services, and port forwarding remains a direct but exposed fallback. Whichever you choose, prepare the server first with proper accounts, minimal protocols and prompt updates, then test from outside your network. Your files will then be available wherever you are, without becoming available to everyone else.