navigation …



javascript subnet calculator
The funny thing about a JavaScript Subnet Calculator is that JavaScript integers are only 16 bit. In order to do easy bit shifting you need 32 bit integers. This code weaves it's way through that situation.
You can use CIDR Netmask in the Network IP field (eg:10.0.0.1/24). Change the network class, network IP, subnet mask, or number of hosts to trigger calculations. This code does work on most browsers including FireFox, Safari, iPhone, iTouch, Blackberry and even IE.