GuidesSecurity

Tailscale Serve and Funnel: commands, ports and the difference

tailscale serve shares a local app on your tailnet over HTTPS; tailscale funnel makes it public. The commands, --bg, ports 443/8443/10000, and the policy setting.

November 22, 2026The Everpod team
The short answer

Tailscale Serve puts a service running on one machine at an HTTPS address, https://<machine>.<tailnet>.ts.net, that only devices on your tailnet can open: tailscale serve --bg 3000. Tailscale Funnel puts the same address on the public internet, for anyone who has it: tailscale funnel --bg 3000, on port 443, 8443 or 10000 only. Both need MagicDNS and HTTPS certificates turned on for the tailnet; Funnel also needs a funnel node attribute in the policy file, which the CLI sees to the first time you run it. tailscale serve status shows what is running and tailscale serve reset clears it. Over Funnel, Tailscale no longer stands between the internet and your app, so the app has to do its own login.

Serve and Funnel side by side

As of November 2026 (Tailscale v1.104.7), from Tailscale’s Serve docs and its Funnel docs:

One port cannot be both: whichever of serve or funnel you ran last on it decides whether it is private or public. Both commands changed shape in client 1.52, so a tutorial written for an older client may show syntax the current CLI does not take; the commands below are the current ones.

What has to be on in the tailnet

MagicDNS and HTTPS certificates, for both. In the admin console, open the DNS page, turn on MagicDNS if it is off, and under HTTPS Certificates select Enable HTTPS. Read the acknowledgement before you click it: Tailscale’s HTTPS page says your machine names and your tailnet’s DNS name “will be published on a public ledger,” the Certificate Transparency logs every public certificate goes into, and “Do not enable the HTTPS feature if any of your machine names contain sensitive information.” A machine called client-acme-staging is worth renaming first. If you run Serve before HTTPS is on, it prints a link to turn it on and waits, as described in opening a localhost app on a remote server.

The funnel node attribute, for Funnel only. The Funnel docs say that if you enable Funnel from the CLI, “Tailscale ensures this requirement is met.” Or, in the admin console’s Access controls page, expand Funnel and select Add Funnel to policy. Either way the entry Tailscale writes lets every member use Funnel on their devices:

"nodeAttrs": [
  {
    "target": ["autogroup:member"],
    "attr":   ["funnel"],
  },
],
Copied

That is broader than most people need. The policy file reference lets target name a tag, a user, a group or *, so to allow Funnel on one tagged server and nowhere else, replace the target with that server’s tag, for example "target": ["tag:agent-server"]. Tagging a server you run an AI agent on, and why its default access is wrong, is the Tailscale SSH guide for an agent server.

Funnel also needs client 1.38.3 or later, works only for names under your tailnet’s ts.net domain and only over TLS, and on a Mac needs the open source variant of the client.

The Serve commands

From the tailscale serve reference:

tailscale serve 3000                       # foreground; Ctrl+C stops it
tailscale serve --bg 3000                  # background; survives reboots
tailscale serve --bg --https=8443 5173     # a second app on port 8443
tailscale serve --bg --set-path=/api 8080  # a second app under /api
tailscale serve --bg https+insecure://localhost:8443   # backend with a self-signed cert
sudo tailscale serve --bg /srv/site        # a directory (needs root)
tailscale serve status                     # what is served, and where
tailscale serve --https=8443 off           # remove one entry
tailscale serve reset                      # remove everything
Copied

The Funnel commands

tailscale funnel takes the same targets and the flags --bg, --https, --set-path, --tcp, --tls-terminated-tcp, --proxy-protocol and --yes, with no --http or --service, and prints “Available on the internet:” above the address instead of “Available within your tailnet:”.

tailscale funnel --bg 3000                 # public on 443
tailscale funnel --bg --https=8443 5173    # public on 8443
tailscale funnel status                    # what is public now
tailscale funnel --https=443 off           # take one down
tailscale funnel reset                     # take all of it down
Copied

Any port other than 443, 8443 or 10000 is refused, for HTTPS and for the TCP forwarders alike. The first time, the public DNS record for the name “can take up to 10 minutes to show up,” so a browser that says the name does not exist in the first minutes is usually just early. Funnel’s certificates come from Let’s Encrypt, and the Funnel docs warn that frequent certificate requests can hit Let’s Encrypt’s rate limits, which then block retries for a while.

Opening an agent’s web UI or a dev server from your phone

This is what Serve is best at. A coding agent on a cloud server starts a dev server on localhost:5173, or an agent with a web interface listens on a local port; install the Tailscale app on your phone, sign it in to the same tailnet, and on the server run:

tailscale serve --bg 5173
Copied

Then open the ts.net address it prints in the phone’s browser. It is a real HTTPS certificate, so the phone shows no warning, and the same address works from your laptop. The app can keep listening on 127.0.0.1, which is safer than binding it to every address, and --bg means the address still works tomorrow without anyone starting it again. Two things commonly get in the way:

Funnel is the wrong tool for this. Your phone is already on the tailnet, so Funnel only adds everyone else.

What changes when it is public

Under Serve, Tailscale has already decided who may connect: the device is signed in to your tailnet and your access rules allow it, and the identity headers tell the app which person it is. Under Funnel neither is true. The request comes from anyone, with no identity headers, and whatever the app does with an unauthenticated request is what the internet gets. For an agent’s interface that can mean a shell on the server with your model key attached. So before tailscale funnel:

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.