Free · personal project

HTTP & TCP Tunnels — Hosted or Self-Hosted

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 — zshCONNECTING

❯ gotunnel http 3000

 

❯

$ gotunnel status

› which server, this device, registration▊

sys::deployment_mode

Run GoTunnel Your Way

// two modes. same binary protocol. same stream multiplexing. same TLS support.

// choose based on ownership preference — not capability.

Mode 01

Self-Hosted

Free · Available

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.

  • TLS encryptionYour certs, or a reverse proxy
  • Deploy on any Linux VPSSingle static binary, no runtime
  • Token authenticationOne or more tokens you control
  • No vendor lock-inYou own the server and the data
  • Systemd service supportRun as a managed background service
  • Port or subdomain modeFixed ports or Host-routed subdomains

❯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

Read the self-hosting guide →
HTTPHTTPSSSHTCPPostgresRedis
Mode 02

Hosted

Recommended for Quick Start

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.

  • No server to runRegister once, then one command
  • Public HTTPS URLst.gotunnel.site subdomains
  • Managed TLS terminationHTTPS out of the box
  • Local request inspectorView and replay requests on :4040
  • Locked TCP tunnelsDatabases and SSH, approved IPs only
  • Token authEmail-verified device tokens

❯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

HTTPHTTPSSSHTCPPostgresRedis

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▊

sys::capabilities

What GoTunnel Does Today

// everything below is in the current release. nothing here is on a roadmap.

// custom binary protocol · stream multiplexing · TLS · single binary.

mod::00Multiplexed

Stream Multiplexing

Every visitor connection becomes its own stream inside one tunnel connection, so one closing doesn't affect the others.

status: active
mod::01Encrypted

TLS Transport

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.

status: active
mod::02Access Control

Token Authentication

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.

status: active
mod::03Resilient

Auto-Reconnect

If your network drops, the client keeps reconnecting on its own until it's back, backing off from 1 to 30 seconds between attempts.

status: active
mod::04HTTP + TCP

HTTP and TCP Tunnels

gotunnel http gives your app a public https URL. gotunnel tcp carries databases, SSH and other TCP services, locked to the IPs you approve.

status: active
mod::05Observable

Metrics & Health

The client shows live latency and requests. A self-hosted server exposes /healthz and Prometheus /metrics for tunnels, streams and auth results.

status: active
mod::06Self-hosting

Many Clients per Server

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.

status: active
mod::07Portable

Single Binary Client

The client is one Go binary for macOS, Linux and Windows. No runtime, containers or package manager needed.

status: active
Custom binary protocolStream multiplexingTLSGo runtimeSingle binary

$ gotunnel http 3000

› inspector on http://127.0.0.1:4040▊

sys::inspector

See every request. Replay any of them.

// 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.

  • Every request, liveMethod, path, status and timing for each call that reaches your tunnel.
  • Headers & bodyRequest and response side by side, with JSON and form bodies formatted.
  • ReplayRe-send a captured webhook to your local app without asking the provider to retry.
  • Copy as cURLTurn any request into a curl command to reproduce it from your terminal.
Read about the inspector →

$ gotunnel tcp 5432

› locked · only approved IPs can connect▊

sys::tcp_tunnelsNew

Share a database. Only with people you approve.

// 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.

  • Plain clientspsql, mysql, mongosh, redis-cli or ssh. The person connecting installs nothing.
  • Locked by defaultUnapproved IPs are dropped at the server, before a single byte reaches your machine.
  • Approval linkShare a link. They verify their email once and their current IP is approved until the tunnel ends.
  • Or an allowlistAlready know the IP? Pass --allowlist and skip the link entirely.
postgresmysqlmongodbredissshrdp
Read about TCP tunnels →
sys::packet_trace

How GoTunnel Works

// traffic enters the public internet and exits at your localhost.

// encrypted in transit. no port forwarding. no firewall rules.

sys::initstep/01 of 04

Start the Client

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 — sys::init01/04

❯gotunnel http 3000

› resolving t.gotunnel.site

# use cases

› what people use it for▊

sys::workflow_registry

Built for Real Development Workflows

// from webhook testing to sharing a database — GoTunnel keeps your development moving.

// 6 registered workflows · http and tcp tunnels.

wf::01
Most Commonwebhooks

Webhook Testing

Receive third-party callbacks from payment gateways, CI pipelines, or any external API without deploying your app — then inspect and replay them locally.

stripe · github · twilioactive
wf::02
demos

Client Demos

Show a client the work in progress running on your machine through a public https link, without setting up a staging deploy.

https://xyz.t.gotunnel.siteactive
wf::03
mobile

Mobile App Testing

Point an iOS or Android build at the API running on your laptop through a public https URL, without deploying it first.

ios · android · react nativeactive
wf::04
Newdatabases

Database Sharing

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.

postgres · mysql · mongodbactive
wf::05
remote

Remote Shells & Debugging

Reach a machine behind NAT over SSH or RDP, or attach a remote debugger, without opening router ports. Only IPs you approve can connect.

ssh · rdp · dlv · gdbserveractive
wf::06
services

Caches & Message Brokers

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.

redis · rabbitmq · natsactive
HTTP tunnelsLocked TCP tunnelsApproval linksAny local port

$ gotunnel audit

› checking transport, certificate, token▊

sys::security_model

Built with Security in Mind

// 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.

sec::01
TLSencryption

TLS Encryption

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.

enforced
sec::02
Requiredauth

Token Authentication

Clients authenticate using secure access tokens before a tunnel session is established. Invalid tokens are rejected at the handshake layer.

enforced
sec::03
isolation

Session Isolation

Each tunnel session runs in an isolated stream context. Traffic from one client cannot bleed into another session.

enforced
sec::04
heartbeat

Heartbeat Monitoring

Persistent heartbeat checks detect dropped or stale connections. Dead sessions are terminated and cleaned up automatically.

enforced
sec::05
Locked by defaultaccess

Locked TCP Tunnels

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.

enforced
sec::06
limits

Limits & Abuse Controls

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.

enforced
TLSToken-gated sessionsRate limitingDaily session limitsAutomatic cleanup
about this project

A side project, not a company

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.

Session length
30 minutes
Sessions per day
3
Tunnels per device
1 at a time

$ gotunnel http 3000▊

sys::ready

Start Tunneling

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

gotunnelconnected

❯gotunnel http 3000

Connected to hosted server

Forwarding https://xyz.t.gotunnel.site → localhost:3000

Status connected ✓ latency: 11ms