Home / Guide / Copyparty port settings

Copyparty Port Guide: Default 3923, Changing It and Opening Firewalls

Everything about the copyparty port: why 3923 is the default, how to change it, which ports FTP, SFTP and SMB use, and how to open firewalls safely.

White router with colourful network cables plugged into its rear ports

Copyparty port settings decide how other devices find your file server, and they are behind a large share of first-day questions. The server listens on port 3923 by default, uses several further ports when you enable extra protocols, and can be moved to any port you prefer, including the standard web ports 80 and 443. This guide explains what each port does, how to change them, how to open firewalls on common systems and how to avoid conflicts and security mistakes.

What a port actually is

A network port is a numbered door on a computer. The IP address tells other devices which computer to talk to; the port tells them which program on that computer should answer. Web browsers assume port 80 for plain HTTP and 443 for HTTPS, which is why you rarely see port numbers in everyday web addresses. When a service uses another port, you add it after a colon, as in http://192.168.1.20:3923.

Why copyparty uses port 3923

copyparty chooses 3923 by default for practical reasons. Ports below 1024 are privileged on Linux and other Unix-like systems, which means only the administrator can open them. Using a high port lets copyparty run as an ordinary user without special permissions, which is safer. The number 3923 is also unlikely to clash with other common software, so the server usually starts without conflicts.

A useful detail is that copyparty accepts both HTTP and HTTPS on the same port. You do not need a second port for encrypted connections when testing.

The full list of copyparty ports

Each optional protocol listens on its own port, and only once you enable it. The documentation lists the following defaults.

  • 3923 for HTTP and HTTPS, including the web interface and WebDAV.
  • 3921 for the FTP server.
  • 3922 for the SFTP server.
  • 3990 for FTPS, the encrypted variant of FTP.
  • 3945 for the SMB server.
  • 3969 or 69 for TFTP.
  • 12000 onwards for passive FTP data connections.
  • 1900 for SSDP and 5353 for mDNS, used by zeroconf announcements on the local network.

You only need to open the ports for features you actually use. For most people, that means 3923 alone.

Changing the main port

The -p option sets the port, or several ports, that copyparty listens on.

Terminal
copyparty -p 8080

In a configuration file, the same setting belongs in the global section.

Terminal
[global]
  p: 8080

You can also listen on more than one port at once by separating the numbers with commas. This is handy during a migration, when some bookmarks still use the old port.

Terminal
copyparty -p 3923,8080

Running on ports 80 and 443

Running copyparty on the standard web ports makes addresses cleaner, because visitors no longer need to type a port number. How you achieve this depends on the operating system.

On Windows and macOS

The documentation notes that Windows and macOS allow ordinary programs to open low ports, so you can simply ask copyparty to listen on both.

Terminal
copyparty -p 80,443

On Linux

Linux reserves ports below 1024 for the administrator. Running copyparty as root to work around this is strongly discouraged. Safer options include the following.

  • Place a reverse proxy such as nginx or Caddy in front of copyparty and let it own ports 80 and 443.
  • Redirect traffic from port 80 or 443 to 3923 with a firewall NAT rule.
  • Grant the Python binary permission to bind low ports with setcap, accepting that this applies to every Python program.

For most servers, a reverse proxy is the best choice, because it also handles HTTPS certificates neatly.

Binding to a specific network interface

Alongside the port, copyparty lets you choose which network addresses to listen on with the -i option. This matters for security.

Terminal
copyparty -i 127.0.0.1

Binding to 127.0.0.1 makes the server reachable only from the same computer, which is ideal for testing or for setups where a reverse proxy on the same machine forwards traffic. Binding to a single LAN address restricts it to one network card. By default, copyparty listens on all interfaces.

Opening the port in your firewall

Even when copyparty is listening, a firewall can silently block other devices. Open only the ports you need.

Windows Defender Firewall

The first time copyparty listens on a port, Windows usually asks whether to allow access. Allow it on private networks only. If you missed the prompt, add an inbound rule for TCP port 3923 in the advanced firewall settings.

Ubuntu and Debian with ufw

Terminal
sudo ufw allow 3923/tcp

Fedora, Rocky Linux and other firewalld systems

Terminal
sudo firewall-cmd --permanent --add-port=3923/tcp
sudo firewall-cmd --reload

macOS

macOS asks whether Python may accept incoming connections the first time copyparty runs with network access. Choose Allow. You can review the decision later in the firewall section of System Settings.

Ports and Docker

In a container, copyparty listens on its usual ports inside the container, and Docker publishes them on the host. The left side of a port mapping is the host port and the right side is the container port. To make copyparty available on host port 8080 while leaving the container unchanged, map 8080 to 3923.

Terminal
docker run -d -p 8080:3923 -v /srv/media:/w copyparty/ac

Remember to publish any extra protocol ports, such as 3921 for FTP and the passive range, if you enable them in the configuration.

Resolving port conflicts

If copyparty reports that the address is already in use, another program is listening on the same port. Common culprits include a second copy of copyparty left running in another window, a development web server, or another self-hosted application.

  • On Linux and macOS, run sudo lsof -i :3923 to see which process holds the port.
  • On Windows, run netstat -ano and search for the port number, then look up the process ID in Task Manager.
  • Either stop the other program or start copyparty on a different port.

Reaching copyparty from outside your network

Opening a port on your router, known as port forwarding, exposes the server directly to the internet. It works, but it also exposes copyparty to automated scanning from around the world. If you choose this route, use a non-default external port, require accounts for every volume, enable HTTPS and keep copyparty updated.

Safer alternatives avoid opening router ports at all. A VPN such as WireGuard or Tailscale lets your own devices reach the server privately, while a Cloudflare tunnel publishes it through an outbound connection. The copyparty documentation covers the tunnel approach for home servers behind restrictive internet connections.

Testing that the port is reachable

After any change, test from a second device on the same network. Open a browser on your phone and enter the server’s address with the port. If the page does not load, work through the chain: confirm copyparty is running, confirm it is not bound to 127.0.0.1, confirm the firewall rule, and confirm both devices share the same network. The --qr option, which prints a QR code with the server’s address, removes typing mistakes from the equation.

Ports for extra protocols in practice

Enabling an additional protocol involves two steps: switching it on in copyparty and allowing its port through the firewall. FTP is a good example because it needs more than one port. The control connection uses 3921, while passive data connections use a range starting at 12000. Without the range, clients can log in but fail as soon as they list a folder or transfer a file.

Terminal
[global]
  ftp: 3921
  ftp-pr: 12000-12099

Allow both the control port and the passive range in your firewall. SFTP is simpler because it uses a single port, 3922, and encrypts everything, which makes it the better choice whenever both protocols would work.

Documenting your port choices

As a home server grows, it is easy to forget which service owns which port. Keep a short note listing every port, its purpose and whether it is open to the internet. Include copyparty’s main port, any extra protocol ports and the external port on your router if you use forwarding. This record makes troubleshooting much faster and prevents two services from quietly competing for the same number after an update.

Choosing a port that suits your network

If you do change the default, pick a number above 1024 that is not used by common software. Avoid well-known ports such as 8080 when another web application is likely to claim it later, and avoid very high ranges that some routers reserve for outgoing connections. Staying with 3923 is perfectly reasonable for most homes; changing it offers no real security benefit on its own, because scanners check thousands of ports quickly.

Ports and IPv6

copyparty supports IPv6 as well as IPv4, and by default it listens on both where the operating system allows. This matters because many home connections now provide IPv6 addresses that are reachable from the internet without any port forwarding, depending on the router’s firewall. Check your router’s IPv6 firewall settings, and do not assume that an unforwarded IPv4 port means the server is hidden. If you want copyparty reachable on IPv4 only, bind it to a specific IPv4 address with the -i option.

Frequently Asked Questions

What is the default copyparty port?

copyparty listens on port 3923 by default for both HTTP and HTTPS, including the web interface and WebDAV.

How do I change the copyparty port?

Use the -p option, for example copyparty -p 8080, or set p in the global section of the configuration file.

Which port does copyparty use for FTP?

The FTP server uses port 3921 by default, with passive data connections starting at port 12000. SFTP uses 3922 and FTPS uses 3990.

Can copyparty run on port 80?

Yes. On Windows and macOS you can listen on port 80 directly. On Linux, a reverse proxy or a NAT redirect is the recommended way.

Why can other devices not reach copyparty on port 3923?

The usual causes are a firewall blocking the port, the server being bound to 127.0.0.1, or the devices being on different networks.

Conclusion

Copyparty port configuration is simple once you know the pattern: 3923 handles the web interface and WebDAV, each optional protocol adds its own port, and the -p and -i options control where the server listens. Open only the ports you use, prefer a reverse proxy or tunnel to exposing the server directly, and test from a second device after each change. With those habits, your file server stays both reachable and secure.