Skip to content

interfaceAddress

function · Source

Get the interface address for a given socket type. Parameters

NameTypeDescription
type"udp4" | "udp6"The socket type.
interfaceAddresses?InterfaceAddressesThe interface addresses mapping.

Returns: string \| undefined — The interface address if available.

Unofficial software. Not affiliated with or supported by Discord.