ZettaSend Docs

Networking and connections

Get two devices connected, choose predictable UDP ports when your network needs them, and understand what the connection tests tell you. These instructions cover Quick Transfer and Hub connections, including the app running in Docker.

Start here

  1. Try connecting with the default automatic ports first. Manual forwarding is not required on every network.
  2. If the connection fails or uses a relay, check both devices' network policies. Allow UDP and keep ZettaSend running on both devices.
  3. For a network you manage, configure a preferred range such as 40000-40099, allow it through the host firewall, and forward it on the IPv4 router when needed.
  4. If connected, open connection details and run advanced diagnostics while both devices are idle or the transfer is paused. If you cannot connect at all, use the troubleshooting checklist below.

For a Hub, its hosting computer must remain awake, online, and running ZettaSend. A browser disconnect from the Docker viewer does not stop the app. Device sleep, an offline host, or a disconnected network cannot be fixed by changing ports.

How a connection works

ZettaSend uses a coordination service to exchange connection information. It then tries to establish a direct QUIC connection between the devices. QUIC carries encrypted file traffic over UDP. If direct connection attempts fail, the app can request a relay when one is available. Signing in or opening the Docker viewer only confirms those services are reachable; it does not prove that the UDP file-transfer path works.

TrafficWhat your network needs to allow
Account and coordinationOutbound HTTPS to account services and secure WebSockets to signaling.zettasend.com on TCP 443. A proxy must allow WebSocket connections.
Direct file transferUDP between the devices, including return traffic. Local preferred listener ports are configurable; remote destination ports depend on the peer and any NAT mapping.
STUN and diagnosticsDNS and outbound UDP to the configured test servers. The connection STUN default is stun.l.google.com:19302. The advanced NAT test defaults to stunserver2025.stunprotocol.org:3478; the IPv6 test defaults to stun.l.google.com:19302.
RelayAccess to the relay coordination URL and UDP to the relay host and port supplied for the session. Allowing HTTPS alone is insufficient.
Docker browser viewerBrowser access to TCP 8080 by default, or the configured WEB_PORT. This is separate from UDP file transfers.

STUN helps discover public addresses and NAT behavior; it does not carry file contents. Account login, updates, and configured webhooks also need their own service access. Administrators should base an allowlist on the deployed configuration and actual relay endpoints, rather than assume one fixed port covers every service.

Configure UDP port ranges

  1. Open the app's Settings, find UDP PORTS, and enable Use preferred port ranges.
  2. Enter ports between 10000 and 49000, inclusive. Use one port, an ascending range, or comma-separated ports and ranges.
  3. Choose around 100 ports for a starting configuration, for example 40000-40099. A split range such as 40000-40049, 40100-40149 is also valid.
  4. Save, then configure the corresponding firewall and router rules. Changes apply to new connections; reconnect to test them.

Quick and Hub listening connections share these preferences. Each connection reserves its own UDP port, including Hub connections that are browsing without actively transferring a file. Concurrent connections can exhaust a small range, and another application may already occupy a port.

Preferred ports are not a strict restriction

If no preferred port can be reserved, ZettaSend uses an automatic UDP port. It may therefore connect outside your configured range. Check Actual local UDP port and Port fallback in diagnostics. If your firewall only allows the preferred range, an automatic fallback may fail to connect.

A workspace can supply default port ranges. The app follows those defaults until you save a local override. To follow them again, select Reset to workspace default, then save. A workspace preference only configures the app; it does not change anyone's router or firewall.

Firewalls and router forwarding

For IPv4 forwarding, reserve a stable LAN address for the computer running ZettaSend, then forward the chosen external UDP range to the same UDP range on that computer. For example, forward UDP 40000-40099 to 40000-40099 at that computer's LAN IP. Allow the same inbound range in its operating-system firewall, plus outbound UDP and return traffic. On a cloud server, check the provider's security group or network firewall too.

Configure UDP, not just TCP. The range selects local listener ports, not a universal destination-port range for outgoing packets. A TCP port checker, an HTTP request, or a successful ICMP ping cannot prove that a QUIC UDP connection is allowed. Forwarding also does not guarantee that every pair of networks can connect directly.

Multiple computers behind one public IPv4 address cannot all receive the same external UDP port mapping. Assign non-overlapping ranges and matching forwarding rules to each computer. If there are two routers, both layers need suitable forwarding or an appropriate upstream bridge configuration. Ask your network administrator before changing shared network equipment; disabling the entire firewall is unnecessary.

NAT types and CGNAT

IPv4 NAT translates a device's private address and UDP port into a public address and port. Mapping describes how that public endpoint changes for different destinations. Filtering describes which incoming packets are admitted. Both affect direct connection attempts. The app uses the following labels as summaries of its observations, not permanent ratings of a router.

Diagnostic labelMeaning
No NAT observedNo address translation was observed on the tested route. A firewall may still filter traffic; the app can report filtering separately.
Full-cone NATEndpoint-independent mapping and filtering. Generally more favorable to direct connections.
Restricted-cone NATEndpoint-independent mapping, with incoming traffic restricted by the remote address already contacted.
Port-restricted-cone NATEndpoint-independent mapping, with incoming traffic restricted by both the remote address and port already contacted.
Address-dependent NATThe mapping can change with the remote IP address, making discovery less predictable.
Symmetric NATAddress-and-port-dependent mapping. An endpoint learned from a STUN server may differ from the endpoint used toward a peer, making direct traversal harder.

The outcome depends on both peers and their firewalls. A restrictive label does not mean direct connection is impossible, and a favorable label does not guarantee success. An unsupported, unavailable, or inconclusive test does not prove symmetric NAT.

Carrier-grade NAT (CGNAT) adds translation at your ISP, outside your router's control. Port forwarding on your router cannot create a mapping in the ISP's NAT. Double NAT has a similar extra-layer problem. Ask the ISP about a public IPv4 address, usable IPv6, or an alternative connection. A relay may help when available, but still needs UDP access.

IPv6 and IPv4

Usable IPv6 on both devices can avoid IPv4 NAT traversal and manual IPv4 forwarding. It still needs a working route and firewall rules allowing the QUIC traffic. A link-local address or an IPv6 address assigned to an adapter does not by itself prove IPv6 Internet access.

Diagnostics distinguishes IPv6 address present, a successful IPv6 Internet test, and the Transport actually used by the connection. A verified IPv6 test does not mean this peer connection uses IPv6, or that the peer is reachable over IPv6. If IPv6 cannot be verified, IPv4 may still work. Do not disable IPv6 simply because an unrelated STUN test failed.

Docker host networking

The supplied Docker Compose setup uses network_mode: host on Linux. The container shares the host's network namespace. This avoids an additional Docker bridge NAT layer and lets the app bind its UDP ports on the host. It does not bypass the host firewall, upstream NAT, CGNAT, or cloud firewall.

Do not add a Compose ports: mapping to this setup: port publishing does not apply in host mode. For router forwarding, target the Docker host's LAN IP, not a container bridge address. Host-mode services also share the host's port space, so check for conflicts with other applications or ZettaSend containers.

The browser viewer uses https://HOST:8080 by default. WEB_PORT changes that TCP listener only; it does not select the file-transfer port range. Configure preferred UDP ports in ZettaSend Settings inside the viewer. An HTTPS reverse proxy can provide the viewer and clipboard's secure browser context, but an ordinary HTTP proxy does not forward the app's separate QUIC file-transfer traffic.

These instructions target Docker Engine on Linux. Docker Desktop and Docker inside a VM introduce different networking constraints; host mode does not automatically remove the VM's routing or firewall layers. See Docker's host networking documentation before adapting this setup.

Run network diagnostics

  1. Establish a Quick or Hub connection and open its connection details from the direct/relay connection indicator. Hub hosts can inspect individual clients from their active connections view.
  2. Wait for both devices to be idle, or pause the transfer on both sides as needed. Select Run advanced diagnostics.
  3. Compare Your device and Peer device, including the route, transport, ports, IPv6 result, and advanced NAT details.
  4. After changing the network or settings, reconnect where necessary and select Run again. Use the test timestamp to distinguish new results from older observations.

Tests require a connected peer and compatible app versions; they are not an offline connection checker. Transfers take priority. The app also schedules diagnostics for relay connections when they become idle, and Hub activity can retain results or partial results after a connection ends. Saved results describe that earlier connection and cannot be rerun against a disconnected peer.

Understand the results

  • Direct / Relay and Transport: describe the live connection. On a relay connection, a displayed remote endpoint can be the relay rather than the peer's public address.
  • Latency: the app measures up to five samples separately from each device and shows the median of timely replies. Replies beyond 600 ms are excluded. Scheduling and a relay can affect the result; the two sides can differ. A missing sample is not a packet-loss measurement.
  • Connection interface / NAT test interface: interface types are estimates. The NAT test independently follows the operating system's route to its test server using a disposable socket; it does not probe the connected QUIC port. VPN routing can make these interfaces differ.
  • NAT mapping / NAT filtering: interpret these together with the NAT label. The server must support the required STUN behavior-discovery features. A server that works for basic address discovery may not support this advanced test.
  • Preferred listener ports / Actual local UDP port / Port fallback: show the configured preference and the port actually selected. They do not confirm that router forwarding is configured, or that NAT preserved the same public port.
  • Couldn't verify / Test unavailable / Not completed: can mean blocked probes, DNS failure, unsupported server features, timeout, cancellation, or the peer becoming busy. Read the test details rather than treating every incomplete result as a network defect.

Relay connections

A relay is a fallback route when direct attempts do not succeed and a relay is available. It forwards the encrypted QUIC traffic between the devices; the peers still validate each other's session certificates. The relay path is not a TCP or HTTPS file-transfer fallback, so it cannot solve a network policy that blocks all required UDP traffic.

Relay throughput and latency depend on the path through the relay and its available capacity. A relay connection may be slower, but is not automatically a failed connection. To improve the chances of a direct route, investigate both devices' UDP access, IPv6, NAT, and forwarding. After making changes, establish a new connection; running diagnostics alone does not switch an existing session to a direct path. Relay availability is not guaranteed.

Transfer speed

The sender's upload, receiver's download, storage speed, network latency, and competing traffic can all limit throughput. Check the app's upload/download limits, try wired Ethernet, and compare a different network or a permitted VPN-free route. An Internet speed test to a nearby server measures a different path from a transfer to your peer. High latency and missing diagnostic samples alone do not identify the bottleneck.

Check units before comparing speeds: 1 MB/s = 8 Mbps. In Docker, screen resolution, frame rate, and optional GPU rendering affect the browser desktop's responsiveness and resource use; they do not grant UDP connectivity or make the file-transfer route direct.

Troubleshooting and support

SymptomWhat to check
Cannot sign in or reach coordinationCheck DNS, HTTPS, secure WebSockets, proxy policy, and the system clock. Opening incoming transfer ports does not fix blocked account access.
Viewer opens but peers cannot connectTCP 8080 only proves viewer access. Check UDP rules on both devices, host networking, router forwarding, the cloud firewall, and whether the Hub host is online.
Works on a hotspot but not the office networkCompare the networks' UDP, QUIC, VPN, and NAT policies with IT. A successful alternate-network test helps locate the restriction but is not proof of a particular NAT type.
Port fallback despite a saved rangeCheck active connections and other applications using the ports. Increase the pool and corresponding forwarding rules if needed, then reconnect. A small range is a preference, not a connection limit.
Still relayed after forwardingCheck the protocol, destination LAN IP, both peers, CGNAT/double NAT, and whether a new connection was tested. The actual public mapping can differ from the local port.
Relay also failsCheck relay availability and access to its coordination endpoint and UDP destination. An HTTP-only proxy cannot supply the missing UDP path.
Diagnostics disabled or incompleteConnect both devices, use compatible app versions, and wait for idle or pause transfers. Check the reported test server, DNS, and test details. An unavailable NAT test is not a symmetric NAT verdict.

For support, include both app versions, operating systems, the direct/relay route and transport, test timestamp, preferred and actual ports, NAT/IPv6 results, and whether a VPN, CGNAT, or Docker is involved. Describe what changed and whether another network works. Share relevant logs privately; redact passwords, tokens, invite codes, and sensitive addresses or paths.

On desktop, use Settings → See Debug Logs. For Docker, use docker compose logs --tail=100 zettasend; app logs also remain under /data/ZettaSend/logs. Contact ZettaSend support if the connection still fails.

Technical references: QUIC over UDP (RFC 9000) and UDP NAT mapping and filtering (RFC 4787).