Skip to content

Reaching a server from outside the network ​

A new UnCorded server runs on the owner's own machine and, by default, only that machine can reach it. This page explains the ways to make it reachable from other networks, what UnCorded Transport is, and exactly which traffic moves over which path. It is written so a person, or an AI agent helping one, can work out which path is involved when something does not connect.

For the wider separation of hosting, reachability, and visibility, see the Platform & hosting model.

The short version ​

Reach modeWho can connectWhat the owner needsPublic web addressPublic game/service portsVoice from outside
Local (default)Only the machine hosting the serverNothingnonenonenone
UnCorded TransportAnyone the server lets in, from any networkA Transport seat on their accounts-<slug>.uncorded.app, platform-managedyes, through plugin.netyes, direct or relayed
Own Cloudflare tunnelAnyone the server lets in, from any networkTheir own Cloudflare account and a tunnel tokenthe owner's own hostnamenonedirect only

The reach mode is chosen in the create-server wizard. Local is the default. Reach decides whether a client can get to the server, never whether it is allowed in. Membership, roles, and plugin permissions are enforced by the server runtime against the signed-in user in every mode.

The pieces involved ​

  • Central is UnCorded's cloud control plane. It holds accounts, the server directory, and Transport entitlements. It issues signed tokens and Transport grants. It learns each server's current address from that server's heartbeat. Central never carries server content: no messages, files, voice, or plugin data pass through it.
  • The server runtime runs on the owner's machine, natively in the app-owned WSL2 distro by default or under the Docker fallback. Everything the server stores lives here.
  • The client is the desktop app or website. It asks Central where a server is, then connects to that server directly.
  • The relay box is UnCorded-operated infrastructure used only by Transport. It runs frps, which relays raw TCP/UDP ports, and coturn, which relays voice media. It forwards bytes and stores nothing.
  • Cloudflare carries the HTTPS/WebSocket web plane for both Transport and the own-tunnel option, through a cloudflared connector that runs beside the runtime.

Every outside-access path dials outward from the owner's machine. The one exception is direct paths, which use automatic router port mapping and are always verified first. The owner never has to forward a port by hand, and no UnCorded path requires one.

What moves where ​

A server has three kinds of traffic. Each one has its own path.

1. The web plane: the app, chat, and the API ​

This is everything a client does in the UnCorded shell: loading plugin panels, the WebSocket for chat and live updates, and the admin API.

text
client ──HTTPS/WSS──▶ Cloudflare edge ──tunnel──▶ cloudflared (owner's machine) ──▶ runtime
                       s-<slug>.uncorded.app        dialed OUTBOUND by the server
  • Local: there is no tunnel. The runtime serves on loopback and only the desktop app on the same machine connects to it.
  • Transport: Central creates a Cloudflare named tunnel and DNS record for the server at s-<slug>.uncorded.app and hands the connector token to the provisioning flow. If Central's Cloudflare integration is not configured, it fails closed: the web plane stays local and raw ports still work.
  • Own Cloudflare tunnel: the same mechanism, using a tunnel token the owner creates in their own Cloudflare account. The token is kept in the desktop secret store and handed to the runtime on a memory-only file. It is never written to disk on the host.

When a server has a public address, clients use it even on the hosting machine. Same-machine traffic therefore goes through Cloudflare too.

2. Raw public ports: game servers and other non-HTTP services ​

This path is for things like a Minecraft server that a plugin runs, which players reach with an address:port rather than a web page. It is Transport-only. A plugin asks for a port with plugin.net.requestPublicPort (see plugin.net). The runtime tries the free direct path first and falls back to the relay:

text
direct:  player ──▶ owner's router (UPnP / NAT-PMP mapping) ──▶ runtime ──▶ plugin's service
relay:   player ──▶ join.uncorded.app:<port> (frps on relay box) ◀──outbound── frpc (runtime) ──▶ plugin's service
  • Direct first. The runtime classifies the home network with STUN, asks the router for a mapping over NAT-PMP or UPnP, and has Central verify from outside that the port answers. Only a verified result counts as direct. CGNAT, symmetric NAT, a router without mapping support, or any failure falls back to the relay. The decision is cached per network.
  • Relay fallback. frpc inside the runtime dials the relay, and the relay assigns a port from its pool. The address players use is join.uncorded.app:<assigned port>. Repeat requests for the same (plugin, name) return the same address.
  • Infrastructure ports cannot be published: the runtime's own control port, frpc's admin port, and the voice ports.

3. Voice media ​

Voice signaling uses the web plane. Audio and video media flow between clients and the server's own media server (SFU) over WebRTC:

text
direct:  client ◀──WebRTC──▶ owner's router (desktop-opened UPnP mapping) ◀──▶ SFU (runtime)
relayed: client ◀──WebRTC──▶ coturn on relay box ◀──▶ SFU (runtime)
  • The desktop app opens the voice media ports on the home router through UPnP while the server runs, and closes them when it stops. Mappings expire on their own if the desktop app crashes.
  • When a client cannot reach the server directly, for example because of CGNAT or strict NAT, it relays its media through TURN on the relay box. TURN details are only given to clients while the server holds a valid Transport grant. Without Transport, voice from outside the network is direct-only and fails on networks where direct cannot work.

How Transport is gated ​

The rule is "no seat, no relay":

  1. The owner's account has some number of Transport seats. Each server using Transport takes one.
  2. While a server holds a seat, Central puts a short-lived signed Transport grant into its heartbeat response. The runtime renews it automatically before it expires, without dropping live connections.
  3. The relay checks that grant on every login and every new port registration. A missing, expired, or wrong-server grant is rejected.
  4. If the seat is released, the grant lapses or is revoked, and the runtime shuts down the relay connection. Fail closed: the runtime never treats a path as available without proof.

Releasing a seat is done from the account page under Transport seats. The server keeps running on the owner's machine and its data is untouched. Only people outside the network lose access. Reactivate gives the seat back.

Dedicated proxy hostnames for reverse-proxy mounts (m-… hostnames) are allocated by the platform and are also Transport-only.

Choosing a mode ​

  • Just trying UnCorded, or only the owner uses it: Local.
  • Friends or a community need to join from anywhere, especially with game servers or voice: Transport. It is the only mode that provides public game/service ports and relayed voice, and the owner configures nothing.
  • The owner already runs Cloudflare and only needs the app reachable: Own Cloudflare tunnel. Game ports and relayed voice are not available.

Not supported:

  • Hand-forwarding the runtime port on the router. No UnCorded flow does this. Use Transport or a tunnel instead.
  • Quick trycloudflare tunnels. These were removed because they expire after 24 hours and broke servers mid-life.

Diagnosing "people outside can't connect" ​

Work out which plane is failing before changing anything:

SymptomPlaneCheck
The server never appears for remote members, or is stuck on "Starting your server…"WebIs the reach mode Local? Is cloudflared up? Is a Transport seat assigned, or an own tunnel token set?
The app works but players can't join the game at join.uncorded.app:<port>Raw portsIs the server on Transport with a seat? Did the plugin get an address, or an unavailable error? Is the game service actually listening on the local port it registered?
The app works but voice connects only on the home Wi-FiVoiceWithout Transport there is no TURN fallback. With Transport, check that the grant is active (seat assigned, server online).
Everything stopped together for outside users onlyGatingWas the seat released, or did billing lapse? The server itself keeps running.

Things an agent should not do:

  • Tell the owner to forward ports or open firewall rules. Transport and tunnels exist so they never have to.
  • Treat a public address as permission. Reach never grants access.
  • Invent a fallback address when plugin.net reports unavailable. Show the owner the unavailable state.
  • Control a server through wsl, docker, or a shell. Use the desktop app, or the UnCorded tools when they are available.

Source map ​

  • reach-mode selection and the server.json tunnel/transport blocks: apps/desktop/src/provision.ts
  • Transport web plane (per-server Cloudflare tunnel + DNS): apps/central/src/transport-cloudflare.ts
  • relay coordinates and the join hostname: apps/central/src/transport-relay-config.ts
  • grant gating of the relay client: runtime/src/transport/controller.ts
  • plugin.net port allocation: runtime/src/transport/public-ports.ts
  • direct-first reachability (STUN, NAT, router mapping): runtime/src/transport/reachability/
  • desktop router mapping for voice media: apps/desktop/src/host-port-forward.ts
  • voice TURN fallback: runtime/src/transport/turn.ts
  • relay service (frps, coturn, grant auth): relay/
  • seat release/reactivate UI: apps/website/src/components/profile/transport-seats-section.tsx