Teitunnel

Share a local service

Get a temporary public URL for anything running on your computer.

A Quick Share gives a service on your computer a random public URL on trycloudflare.com. It needs no Cloudflare account.

  1. Open Quick Share (⌘3) or choose Share a Local Port… in the menu bar.
  2. Pick one of the running services Teitunnel found (dev servers and Docker containers are listed first), or type a port or address such as 3000 or http://localhost:8080.
  3. Choose how long it should keep running, then Share.

The URL appears as soon as Cloudflare assigns it. Copy it, open it, or show a QR code for a phone. The card shows requests, errors and the connector's log.

Stop Sharing ends it, as does quitting Teitunnel. Anyone with the link can reach the service while it runs, so share only what you mean to.

On your own domain

With a Cloudflare account connected, the Address menu also offers your domains: choose On example.com, type a subdomain such as demo, and Share. You get https://demo.example.com instead of a random address.

It's a real route on this machine's tunnel, made and removed through the same reviewed-plan machinery as any route, but temporary: it goes away with its DNS record when you stop it, when its time is up, or when you quit Teitunnel (and if Teitunnel crashes, it's removed the next time it starts). It never takes over a hostname that already has a record Teitunnel didn't create. It shows in Routes with a Temporary badge.

From the terminal, teitunnel-cli share 3000 --on demo.example.com --for 2h does the same for as long as the command runs.

Quick Shares are meant for testing and demos. Cloudflare doesn't guarantee their uptime, and the URL changes every time. For a stable address, use your own domain.

Edit on GitHub

On this page