four octets, each 0..255
Optionalprefix: number | null = null
0..32, or null for a plain address
the block's broadcast address (prefix carried through)
the first usable host (the network address itself for a /31 or /32)
the last usable host (the broadcast address itself for a /31 or /32)
the netmask implied by the prefix, as a bare address
the block's network address (prefix carried through)
a.b.c.d or a.b.c.d/prefix
Staticparsea.b.c.d or a.b.c.d/prefix
A parsed IPv4 address with an optional CIDR prefix -- CASC.md ยง6.7's
127.0.0.1/10.0.0.0/8. MirrorsCooper.IPv4: the constructor is the same validation a bare literal gets at load time, so an out-of-range octet or prefix is an error, never a silently accepted value.Node has no native address object (
node:networks with strings), so the conversion helpers aretoString()/IPv4.parse().