dial abstract method

Future<TailscaleConnection> dial(
  1. String host,
  2. int port, {
  3. Duration? timeout,
})

Opens a TCP connection to a node on the tailnet.

host may be a tailnet IP (for example 100.64.0.5) or a MagicDNS name (for example my-node or my-node.tailnet.ts.net). timeout bounds the native tailnet dial only, not the lifetime of the returned connection.

Throws TailscaleTcpException on tailnet-side failures such as no route, refused connection, or use before the embedded node is running.

Implementation

Future<TailscaleConnection> dial(String host, int port, {Duration? timeout});