share_port
Share a local port over your tailnet via Tailscale Serve, or expose it to the open internet using Funnel. Returns the URL.
Instructions
Share a local port over the tailnet via Tailscale Serve (tailnet-only by default). WARNING: setting public=true switches to Funnel and exposes the port to the OPEN INTERNET — anyone with the URL can reach it. Only set public=true when internet exposure is explicitly intended. Returns the resulting URL(s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | HTTPS mount path on the serve endpoint (default: "/") | |
| port | Yes | Local port to share | |
| public | No | Expose to the open internet via Funnel (default: false = tailnet-only Serve). DANGEROUS: public=true makes the port reachable by anyone on the internet. |