IPv6 address distance

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

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

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

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "address_a": "2001:db8::1",
  "address_b": "2001:db8::b"
}

Response:

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

How to call it

MCP

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

{
  "id": "ipv6-address-distance",
  "version": "1.0.0",
  "input": {
    "address_a": "2001:db8::1",
    "address_b": "2001:db8::b"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/ipv6-address-distance/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"address_a":"2001:db8::1","address_b":"2001:db8::b"}'

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

CLI

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

Get the client at /clients/cli/.