tailscale serve --http=80 localhost:3000

Category: Local Network & Public Hosting

tailscale serve --http=80 localhost:3000

Expose a local web app on your tailnet

This publishes the web server on localhost:3000 to the tailnet at this machine's MagicDNS name on port 80, with TLS handled by Tailscale. Only tailnet devices can reach it, making it perfect for sharing a dev server or internal dashboard. Stop it with the off keyword.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.