network_ip_range_calculator
Compute IPv4 network details offline: expand CIDR blocks, summarize IP ranges, test membership, or list addresses. No DNS or live network required.
Instructions
IP Range Calculator. Compute IPv4 network details with offline integer arithmetic, no DNS or live network. The operation field selects one of four jobs: 'cidr' expands a CIDR block to its network/broadcast/mask/wildcard, usable host range, host count, class, and private/public flag; 'range' summarises an explicit start and end IPv4 into a total address count; 'check' tests whether an IPv4 falls inside a CIDR block; 'list' enumerates the first N addresses of a CIDR block. Use network_subnet_calculator or network_cidr_calculator instead for general subnet planning and notation conversion, and networking_ipv4_to_ipv6 to convert an address to IPv6. IPv4 only. Read-only, non-destructive, contacts no external service, and rate-limited (100 req/min, 1000/hr anonymous). The result object shape depends on the chosen operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Which calculation to run. cidr expands a CIDR block; range summarises start/end IPs; check tests membership; list enumerates addresses. | cidr |
| cidr | No | CIDR block in address/prefix form, required for the cidr, check, and list operations. Prefix must be 0-32. | |
| input | No | Alias for cidr accepted only by the cidr operation; cidr takes precedence when both are present. | |
| startIp | No | First IPv4 address of the range, required for the range operation. Must be less than or equal to endIp. | |
| endIp | No | Last IPv4 address of the range, required for the range operation. | |
| ip | No | IPv4 address to test for membership, required for the check operation. | |
| limit | No | Maximum number of addresses to enumerate for the list operation. Output is truncated to this many. | |
| worker_id | No | Optional registered healthy worker peer ID. Omit to use the default master-server behavior. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when the calculation succeeded. | |
| operation | No | The operation that was run, echoed back. | |
| result | No | Operation-specific payload (object for cidr/range/list; the check operation instead returns a boolean here). | |
| error | No | Error message when success is false. |