interface SocketAddressInitOptions {
    address?: string;
    family?: IPVersion;
    flowlabel?: number;
    port?: number;
}

Properties

address?: string

The network address as either an IPv4 or IPv6 string.

127.0.0.1
family?: IPVersion

'ipv4'

flowlabel?: number

An IPv6 flow-label used only if family is 'ipv6'.

0
port?: number

An IP port.

0