Skip to main content
SocketAddressInitOptions - net - Node documentation
interface SocketAddressInitOptions

Usage in Deno

import { type SocketAddressInitOptions } from "node:net";

Properties

optional
address: string | undefined

The network address as either an IPv4 or IPv6 string.

optional
family: IPVersion | undefined
optional
flowlabel: number | undefined

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

optional
port: number | undefined

An IP port.