Subnet Surgeon

Subnet Surgeon does the subnet maths: network and broadcast address, the range, first and last usable host, host count, default gateway, and whether two addresses are on the same subnet. IPv4 and IPv6.

There's a window with a Copy button and a command line version with 32 subcommands. Neither one pings or scans; you type the addresses in:

pip install .
sntss-cli subnet-id 192.168.0.77 255.255.255.0
sntss-cli same-subnet 192.168.0.5 192.168.7.5 255.255.0.0
sntss-cli v6-subnet-id 2001:db8::1 64

A /31 counts both addresses and a /32 is itself, rather than the usual minus two.

Python 3.10 and up. Source.

Numbering a network? Get in touch.