Systems
vipaddress
IPv4 addresses and networks, parsed, checked and compared.
Released v1.0.0 · 2026-09-28use "stdlib/ipaddress.ven"
IPv4 address and network handling in pure Venutian: parsing and validating dotted decimal addresses and comparing them against a fixed set of reserved ranges, using plain arithmetic on four small numbers.
print ipv4_is_valid("192.168.1.256")
Reference (10 functions)
API reference
ipv4_is_valid(text)
ipv4_is_valid("192.168.1.256")ipv4_octets(text)
ipv4_octets("192.168.1.10")ipv4_to_integer(text)
ipv4_to_integer("192.168.1.10")ipv4_from_integer(value)
ipv4_from_integer(3232235786)ipv4_is_private(text)
Tests whether text falls in a common private-use or link-local range.
ipv4_is_private("10.1.2.3")ipv4_network_address(cidr)
Gives back the network address of CIDR network cidr.
ipv4_network_address("192.168.1.130/24")ipv4_broadcast_address(cidr)
Gives back the broadcast address of CIDR network cidr.
ipv4_broadcast_address("192.168.1.0/24")ipv4_in_network(address, cidr)
Tests whether address falls inside CIDR network cidr.
ipv4_in_network("192.168.2.42", "192.168.1.0/24")