Put a local app or database on the internet with one command. Register this device with your email once, then share a public URL, or a TCP address only the people you approve can reach.
Free to use · rate-limited · macOS, Linux & Windows · self-hostable
❯ gotunnel http 3000
❯
$ gotunnel status
› which server, this device, registration▊
// two modes. same binary protocol. same stream multiplexing. same TLS support.
// choose based on ownership preference — not capability.
Run the same GoTunnel binary as your own server on any Linux VPS. You own the infrastructure, the certs, and the data — no database, Redis, or email required. Built for teams who can't send traffic through third-party servers.
❯gotunnel server --tls --auth-tokens SECRET
GoTunnel Server v1.0.0
Tunnel port :9000
Auth 1 token
Ready for connections
# then, on your machine:
❯GOTUNNEL_TOKEN=SECRET gotunnel http 3000 --server your-vps:9000 --tls
Use the free hosted server with one command. No server to provision, no certs to manage — handy for demos, webhooks, and quick tests. Fair-use limits apply: 30-minute sessions, 3 a day, one tunnel per device.
❯gotunnel http 3000
Connected to hosted server
Forwarding https://xyz.t.gotunnel.site → localhost:3000
Status connected ✓
Latency 12ms
Streams 4 active
Uptime 00:04:31
Both modes use the same binary protocol with stream multiplexing. The hosted server always uses TLS; self-hosted servers use it once you enable it.
$ gotunnel inspect
› listing what this build supports▊
// everything below is in the current release. nothing here is on a roadmap.
// custom binary protocol · stream multiplexing · TLS · single binary.
Every visitor connection becomes its own stream inside one tunnel connection, so one closing doesn't affect the others.
Traffic between your client and the hosted server runs over TLS on port 443. Self-hosted servers use TLS once you enable it with your own certificates.
Every tunnel needs a valid token: an email-verified device token on the hosted server, your own tokens when self-hosting. Repeated failures lock the IP out.
If your network drops, the client keeps reconnecting on its own until it's back, backing off from 1 to 30 seconds between attempts.
gotunnel http gives your app a public https URL. gotunnel tcp carries databases, SSH and other TCP services, locked to the IPs you approve.
The client shows live latency and requests. A self-hosted server exposes /healthz and Prometheus /metrics for tunnels, streams and auth results.
A self-hosted server runs many clients at once, each with its own streams and token. The hosted server has fair-use limits per device.
The client is one Go binary for macOS, Linux and Windows. No runtime, containers or package manager needed.
$ gotunnel http 3000
› inspector on http://127.0.0.1:4040▊
// a local request inspector starts with every tunnel — built for testing webhooks.
// history lives in memory on your machine for that run only. nothing is stored on the server.
content-type application/json
stripe-signature t=1760121728,v1=5257a8…
{
"id": "evt_1Q8xK2",
"type": "payment_intent.succeeded",
"data": {
"amount": 4999,
"currency": "usd"
}
}$ gotunnel tcp 5432
› locked · only approved IPs can connect▊
// expose any TCP service and get a host and port that works with the client you already use.
// every TCP tunnel starts locked. you decide who gets in, and you see each approval live.
(( ● )) → GoTunnel● online
Forwarding tcp://k3x9m2qz7a.tcp.gotunnel.site:20017 → localhost:5432
Access locked · approve at https://approve.tcp.gotunnel.site/a/7fQx2…
19:42:08 Connect with: psql -h k3x9m2qz7a.tcp.gotunnel.site -p 20017 -U <user>
19:44:51 ✓ alice@acme.dev approved from 198.51.100.9
$ psql -h k3x9m2qz7a.tcp.gotunnel.site -p 20017 -U app -d shop
Password for user app:
psql (17.2)
shop=> select count(*) from orders;
count
-------
1042
# one request, end to end
› from public URL to localhost▊
// traffic enters the public internet and exits at your localhost.
// encrypted in transit. no port forwarding. no firewall rules.
Run the GoTunnel client and point it at your local service port. One command, no config files or firewall rules. The first run asks for your email to register the device.
❯gotunnel http 3000
› resolving t.gotunnel.site
# use cases
› what people use it for▊
// from webhook testing to sharing a database — GoTunnel keeps your development moving.
// 6 registered workflows · http and tcp tunnels.
Receive third-party callbacks from payment gateways, CI pipelines, or any external API without deploying your app — then inspect and replay them locally.
Show a client the work in progress running on your machine through a public https link, without setting up a staging deploy.
Point an iOS or Android build at the API running on your laptop through a public https URL, without deploying it first.
Give a teammate or client access to your local database for a debugging session. They connect with psql or mysql; only IPs you approve get in.
Reach a machine behind NAT over SSH or RDP, or attach a remote debugger, without opening router ports. Only IPs you approve can connect.
Point a staging app or a colleague's machine at the Redis or RabbitMQ running on your laptop to reproduce a bug end to end.
$ gotunnel audit
› checking transport, certificate, token▊
// built as a learning project · token-gated · rate-limited · tcp tunnels locked by default.
// http tunnel urls are public: anyone with the link can reach your app, so keep sensitive tools behind their own login.
The hosted server encrypts traffic between the client and the server with TLS. Self-hosted servers do too once you enable it with your own certificates or a reverse proxy.
Clients authenticate using secure access tokens before a tunnel session is established. Invalid tokens are rejected at the handshake layer.
Each tunnel session runs in an isolated stream context. Traffic from one client cannot bleed into another session.
Persistent heartbeat checks detect dropped or stale connections. Dead sessions are terminated and cleaned up automatically.
TCP tunnels refuse every connection unless the IP is on your allowlist or was approved by email through your link. Everything else is dropped by the firewall before it reaches your machine.
Frames are capped at 16 MB and bandwidth is limited per tunnel. Repeated failed logins lock an IP out, and IPs that keep probing TCP tunnels are banned for a while.
GoTunnel is a personal project I build to learn networking and systems design in Go. The hosted server is free to use with fair-use limits, provided as-is, without guarantees, and it may change or go offline.
For anything important, self-host it — it's the same binary. Your email is only used to verify your device for the hosted server.
$ gotunnel http 3000▊
Download the build for macOS, Linux, or Windows, run one command, and get a public URL. Use the free hosted server, or self-host the same binary on your own VPS.
free · rate-limited · provided as-is · self-hostable
❯gotunnel http 3000
Connected to hosted server
Forwarding https://xyz.t.gotunnel.site → localhost:3000
Status connected ✓ latency: 11ms