tailscale serve --bg --https=443 localhost:3000

Category: Local Network & Public Hosting

tailscale serve --bg --https=443 localhost:3000

Serve a local service in the background

The --bg flag detaches the serve process so it keeps running after the terminal closes, and --https=443 publishes the local server on the standard HTTPS port. Without --bg, the tunnel dies when you log out. Persist the config with tailscale serve reset for reboot survival.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.