What is it?
A subnetting calculator. It will help you subnet networks with ease. It will take an input (either a submask, a CIDR notation, a number of hosts, and/or an IP) and provide you with a wide range of outputs.
The calculator is available as a webapp for mobile phones. In particular, on iOS you can 'pin' it to your home menu and it'll function just like an app. It'll cache the source files so you can use it offline. It only takes ~50 kB of space, so it's incredibly small. It'll try to refresh the content via network connection every two times you open and close the app.
It'll work on nearly any browser except for old versions of IE (lte 8). I'd provide more support, but I'm assuming that anyone who would use this either 1) doesn't use IE lte 8, or 2) if they do, they can load it on a mobile device before they need to use it, as the calculator works offline.
How do I use it?
It accepts four types of input: submask, CIDR prefix, hosts, and IP.
Each input should follow this general syntax:
- IPv4 Address:
The only punctuation needed is periods.
The calculator will reject invalid IPs like "192.256.999.3" or "192.168.2.cat".
Calculator currently doesn't support addresses like "192.168.1.1/24", but typing the "24", hitting TAB, and then typing "192.168.1.1" shouldn't be *too* hard, should it?
Hexidecimal numbers *should* work, but not octal (because 013 is converted to 13).
NOTE: If you wish to use calculate with hosts, but the number of hosts is LESS than 32, you'll need to check the "Use # of Hosts?" checkbox. The calculator will automatically assume that any value greater than 32 is a host value and less than and equal to 32 is CIDR. Therefore, in order to avoid the overlap I've put in the checkbox to make sure you get the correct results.
How do I use it on my website?
Can I use this on my own website? Or somewhere else?
Yes. The code's previous GPLv3 has been removed and is now under CC BY-SA 4.0.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.