bind abstract method

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

Accepts inbound TCP 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.

Implementation

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