Skip to content

ipv4BroadcastAddress

ipv4BroadcastAddress(prefix): BitAddress | null

Defined in: packages/net-address/src/ipv4/ipv4-prefix.ts:36

The directed broadcast address — the prefix’s highest address.

BitPrefix

BitAddress | null

null for /31 and /32, which have none: RFC 3021 gives a /31 two host addresses and no broadcast, and a /32 is one host.

RangeError When the prefix is not over a 32-bit address.