forward abstract method

Future<TailscalePublishedService> forward({
  1. required int localPort,
  2. int publicPort = 443,
  3. String localAddress = '127.0.0.1',
  4. String path = '/',
})

Publishes http://[localAddress]:[localPort] on the public internet.

publicPort defaults to 443. Tailscale currently allows Funnel only on policy-approved ports (commonly 443, 8443, and 10000; see https://tailscale.com/docs/features/tailscale-funnel); unsupported ports throw TailscaleFunnelException with a structured error code where the native runtime can classify it.

localAddress must be loopback (127.0.0.1, ::1, or localhost). This prevents accidentally publishing arbitrary LAN or metadata-service endpoints to the public internet.

Implementation

Future<TailscalePublishedService> forward({
  required int localPort,
  int publicPort = 443,
  String localAddress = '127.0.0.1',
  String path = '/',
});