Skip to content

ipv4UsableHostRange

ipv4UsableHostRange(prefix): BitRange

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

The addresses usable by a host.

/30 and shorter exclude the network and broadcast addresses; a /31 is both of its addresses (RFC 3021); a /32 is its single address.

BitPrefix

BitRange

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