IPv4 in CIDR

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

Test whether a canonical IPv4 address lies in a CIDR prefix whose host bits are zero.

Use when you need to: ipv4 in cidr · check ipv4 cidr membership · ipv4 address in network prefix.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "address": "192.168.1.10",
  "cidr": "192.168.1.0/24"
}

Response:

{
  "result": {
    "inside": true,
    "network": "192.168.1.0",
    "prefix": 24
  }
}

How to call it

MCP

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

{
  "id": "ipv4-in-cidr",
  "version": "1.0.0",
  "input": {
    "address": "192.168.1.10",
    "cidr": "192.168.1.0/24"
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.