IPv4 address distance

ipv4-address-distance · version 1.0.0 · URLs & IP addresses · free, no key needed

Compute the signed integer distance between two IPv4 addresses (address_b minus address_a).

Use when you need to: ipv4 address distance · ipv4 address difference · how many ipv4 addresses apart.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "address_a": "10.0.0.1",
  "address_b": "10.0.0.11"
}

Response:

{
  "result": {
    "difference": "10"
  }
}

How to call it

MCP

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

{
  "id": "ipv4-address-distance",
  "version": "1.0.0",
  "input": {
    "address_a": "10.0.0.1",
    "address_b": "10.0.0.11"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv4-address-distance/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"address_a":"10.0.0.1","address_b":"10.0.0.11"}'

The machine-readable contract is at /v1/tools/ipv4-address-distance/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.