If your already in a terminal window then no need to switch over to a web browser, or thinking about adding in network subnet knowledge to your awesome App? Have a look at our really simple API with JSON formatted output, examples of usage are below!
Completely free to use, just let us know if you're going to send us over 10k requests a day.
Simple to use, already on most Linux/OSX platforms from terminal
$ curl subnet.im/192.168.12.12/30 { "ip": "192.168.12.12", "netmask": "255.255.255.252", "cidr": 30, "wildcard": "0.0.0.3", "network": "192.168.12.12", "broadcast": "192.168.12.15", "firsthost": "192.168.12.13", "lasthost": "192.168.12.14", "totalhosts": 2 }
Simple to get via Python, then decode the Json as needed
>>> r = requests.get('http://subnet.im/192.168.12.12/30') >>> print(r.text) { "ip": "192.168.12.12", "netmask": "255.255.255.252", "cidr": 30, "wildcard": "0.0.0.3", "network": "192.168.12.12", "broadcast": "192.168.12.15", "firsthost": "192.168.12.13", "lasthost": "192.168.12.14", "totalhosts": 2 }