bind abstract method

Future<TailscaleListener> bind({
  1. required int port,
  2. String? address,
})

Accepts inbound HTTPS/TLS connections on the tailnet.

port is the tailnet port to bind. Pass 0 to request an ephemeral tailnet port, then read it from the returned TailscaleListener.local.

address restricts the listener to a specific tailnet IP of this node; leave null to accept on all tailnet IPs this node holds.

Go terminates TLS using tsnet.Server.ListenTLS. Dart receives package-native plaintext TailscaleConnection objects, not dart:io sockets. Certificate acquisition and renewal stay inside the embedded Go runtime; Dart does not receive cert-rotation events.

Implementation

Future<TailscaleListener> bind({required int port, String? address});