Enzonic Tunnel

Enzonic Tunnel gives a Minecraft server on your own computer a public address, without port forwarding. Your computer keeps an outbound connection to a relay, and the relay passes each player through to your server.

How it works

  1. Your server runs on your computer, for example on 127.0.0.1:25565.
  2. The tunnel client opens an outbound connection to a relay and receives a public address such as myserver.selfhosted.enzonic.dev, with no port to type. A numbered address such as 203.0.113.10:25607 also works.
  3. Friends join that address. The relay reads which name they typed and forwards each player connection to your computer over a new outbound connection.

Built into Enzonic Launcher

In the launcher, open Hosting and choose Your computer. The launcher downloads Java and the server, asks you to accept the Minecraft EULA, starts the server and connects the tunnel for you. The public address appears next to the server.

Players from up to 3 IP addresses at once

Each tunnel accepts players from at most 3 different IP addresses at the same time. Several connections from the same IP count once. A player from a fourth address sees a message in Minecraft explaining the limit and pointing to Enzonic Cloud. Player connections that send nothing for 5 minutes are closed; normal play never reaches this.

Run your own relay

The relay runs on any Linux server with an amd64 or arm64 CPU. The installer downloads the relay binary from this site, checks it against SHA256SUMS, creates a system user and a hardened systemd service, opens the firewall ports in ufw or firewalld, and starts the service.

curl -fsSL https://launcher.enzonic.com/tunnel/install.sh | sudo bash

At the end the installer prints the DNS records to create: an A record for the relay domain and a wildcard A record (*.domain), both pointing at the server. On Cloudflare, set them to DNS only (grey cloud), because the proxy does not carry Minecraft traffic. Also allow TCP 25565 (players), 7000 (control), 80 (certificate) and 25600 to 25999 (numbered player ports) in your cloud provider's firewall. Running the installer again upgrades the relay and keeps every tunnel, its name and its port.

Installer options

Set these environment variables for bash, for example:

curl -fsSL https://launcher.enzonic.com/tunnel/install.sh | sudo ENZ_TUNNEL_DOMAIN=relay.example.com bash
VariableEffect
ENZ_TUNNEL_DOMAINDomain of your relay. Players join name.domain, and the relay gets a free TLS certificate for it. Default selfhosted.enzonic.dev; set it empty for an IP-only relay.
ENZ_TUNNEL_PUBLIC_HOSTPublic host name or IP given to clients when no domain is used. Detected automatically when not set.
ENZ_TUNNEL_LISTENControl address. Default :7000.
ENZ_TUNNEL_PORT_MIN, ENZ_TUNNEL_PORT_MAXRange of public player ports. Default 25600 to 25999.
ENZ_TUNNEL_MAX_IPSDistinct player IP addresses per tunnel at once. Default 3.
ENZ_NO_SYSTEMD=1Install the files without touching systemd, for containers and CI.
ENZ_NO_FIREWALL=1Leave ufw and firewalld unchanged.

Uninstall

Removes the service, binaries and firewall rules and keeps the configuration and tunnel database. Add --purge to delete those too.

curl -fsSL https://launcher.enzonic.com/tunnel/uninstall.sh | sudo bash

Command-line client

Use the standalone client to tunnel any server, for example one you start yourself. The token that keeps your public port is saved in your user config folder.

enzonic-tunnel --server selfhosted.enzonic.dev:7000 --tls --name myserver --local 127.0.0.1:25565
FlagDefaultMeaning
--serverselfhosted.enzonic.dev:7000Relay address.
--local127.0.0.1:25565Your local server.
--namenoneAddress to claim: players join name.selfhosted.enzonic.dev. 3 to 32 letters, digits or dashes. The tunnel keeps it until it is unused for 30 days.
--display-namecomputer nameDisplay name for the tunnel.
--token-fileuser config folderWhere the tunnel token is kept. Keep it to get the same port back.
--tlsoffConnect to a relay that has TLS enabled.

Downloads

Every file is listed in SHA256SUMS. Verify a download with sha256sum or Get-FileHash before running it.

FilePlatformSizeSHA-256
enzonic-tunnel-server-linux-amd64RelayLinux x86-6411.6 MB07a7c0b6910dbd2baced5190652b541a6b6f03ae829a7caf149c78e76629b7b1
enzonic-tunnel-server-linux-arm64RelayLinux ARM6411 MBc5a63a7c37ff7692ebaba020ee4f271554d788adabe23253aef2ccb04c5aecf6
enzonic-tunnel-linux-amd64ClientLinux x86-645.3 MB595c3a90fc3d342b634550f3d5dcf3aa26ca7fe1b4c2c6761f8fb238992323d1
enzonic-tunnel-linux-arm64ClientLinux ARM644.8 MBb74595a92c1f64d85c833b2b8c725d76cd74eb2ad8f1108a97fce2227e560202
enzonic-tunnel-windows-amd64.exeClientWindows x86-645.4 MB27486d9ca877ee8b42a3477f7531efeda63ed0cf8d60164cb54821e6e6d37595
enzonic-tunnel-darwin-amd64ClientmacOS x86-645.4 MB61786a079310b45474a093ad462d675292e784ee847ea7e2cc4cff216302a97b
enzonic-tunnel-darwin-arm64ClientmacOS ARM644.9 MBc709ae791953d102d79243811412aef3bb53ba6f2bd9499b4af6372a67409f51

SHA256SUMS install.sh

Want more than 3 players?

Enzonic Cloud hosts your server for you, with no tunnel player limit and nothing running on your computer. The free tier includes 3.5 GB of RAM, 2 vCPU (200% CPU) and 5 GB of SSD storage, and hibernates after 15 minutes without players.

See Enzonic Cloud plans (opens in a new tab)

Theme

Language

Sign-in only works on launcher.enzonic.com because Enzonic accounts are tied to the enzonic.com domain.