IPv4 CIDR parse

ipv4-cidr-parse · version 1.0.0 · URLs & IP addresses · free, no key needed

Parse an IPv4 CIDR block into its network, broadcast, netmask, wildcard mask, usable host range and address counts.

Use when you need to: ipv4 cidr parse · ipv4 subnet info · ipv4 cidr to network details.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "cidr": "192.168.1.0/24"
}

Response:

{
  "result": {
    "network": "192.168.1.0",
    "broadcast": "192.168.1.255",
    "netmask": "255.255.255.0",
    "wildcard_mask": "0.0.0.255",
    "prefix": 24,
    "first_usable_host": "192.168.1.1",
    "last_usable_host": "192.168.1.254",
    "usable_host_count": "254",
    "total_count": "256"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "ipv4-cidr-parse",
  "version": "1.0.0",
  "input": {
    "cidr": "192.168.1.0/24"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv4-cidr-parse/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cidr":"192.168.1.0/24"}'

The machine-readable contract is at /v1/tools/ipv4-cidr-parse/versions/1.0.0.

CLI

node cli.mjs run ipv4-cidr-parse 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.