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
- Your server runs on your computer, for example on 127.0.0.1:25565.
- 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.
- 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 bashAt 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| Variable | Effect |
|---|---|
ENZ_TUNNEL_DOMAIN | Domain 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_HOST | Public host name or IP given to clients when no domain is used. Detected automatically when not set. |
ENZ_TUNNEL_LISTEN | Control address. Default :7000. |
ENZ_TUNNEL_PORT_MIN, ENZ_TUNNEL_PORT_MAX | Range of public player ports. Default 25600 to 25999. |
ENZ_TUNNEL_MAX_IPS | Distinct player IP addresses per tunnel at once. Default 3. |
ENZ_NO_SYSTEMD=1 | Install the files without touching systemd, for containers and CI. |
ENZ_NO_FIREWALL=1 | Leave 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 bashCommand-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| Flag | Default | Meaning |
|---|---|---|
--server | selfhosted.enzonic.dev:7000 | Relay address. |
--local | 127.0.0.1:25565 | Your local server. |
--name | none | Address 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-name | computer name | Display name for the tunnel. |
--token-file | user config folder | Where the tunnel token is kept. Keep it to get the same port back. |
--tls | off | Connect 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.
| File | Platform | Size | SHA-256 |
|---|---|---|---|
| enzonic-tunnel-server-linux-amd64Relay | Linux x86-64 | 11.6 MB | 07a7c0b6910dbd2baced5190652b541a6b6f03ae829a7caf149c78e76629b7b1 |
| enzonic-tunnel-server-linux-arm64Relay | Linux ARM64 | 11 MB | c5a63a7c37ff7692ebaba020ee4f271554d788adabe23253aef2ccb04c5aecf6 |
| enzonic-tunnel-linux-amd64Client | Linux x86-64 | 5.3 MB | 595c3a90fc3d342b634550f3d5dcf3aa26ca7fe1b4c2c6761f8fb238992323d1 |
| enzonic-tunnel-linux-arm64Client | Linux ARM64 | 4.8 MB | b74595a92c1f64d85c833b2b8c725d76cd74eb2ad8f1108a97fce2227e560202 |
| enzonic-tunnel-windows-amd64.exeClient | Windows x86-64 | 5.4 MB | 27486d9ca877ee8b42a3477f7531efeda63ed0cf8d60164cb54821e6e6d37595 |
| enzonic-tunnel-darwin-amd64Client | macOS x86-64 | 5.4 MB | 61786a079310b45474a093ad462d675292e784ee847ea7e2cc4cff216302a97b |
| enzonic-tunnel-darwin-arm64Client | macOS ARM64 | 4.9 MB | c709ae791953d102d79243811412aef3bb53ba6f2bd9499b4af6372a67409f51 |
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.