IP Address Utilities

Network Info

Network Info analyzes IP networks and CIDR blocks, returning subnet details like range, broadcast address, and host count. Use via MCP in Cursor or Windsurf, or call GET /v1/ip/network with a network parameter. For example, "192.168.1.0/24" returns the full /24 subnet breakdown. Essential for network planning and IP address management in infrastructure tools.

API Endpoint

GET /v1/ip/network

Code Examples

curl "https://tinyfn.io/v1/ip/network" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/ip/network', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/ip/network',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's ip address tools:

{
  "mcpServers": {
    "tinyfn-ip": {
      "url": "https://tinyfn.io/mcp/ip",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What network information does this tool provide?

Returns network range, broadcast address, subnet mask, host count, and network class for any valid CIDR notation or IP network.

How do I analyze a subnet with MCP in Cursor?

Ask your AI agent to "analyze the network 10.0.0.0/16" and it will use the Network Info tool to return all subnet details including usable IP range.

What input formats are supported?

Accepts CIDR notation (192.168.1.0/24), IP with subnet mask (10.0.0.0 255.255.0.0), or just an IP address which defaults to its natural class boundary.

Can it handle IPv6 networks?

Yes, supports both IPv4 and IPv6 CIDR blocks, returning appropriate network boundaries and prefix information for both protocols.

What's the difference between network address and broadcast address?

Network address is the first IP in the subnet (all host bits 0), broadcast address is the last IP (all host bits 1). Usable IPs fall between these two.

Try Network Info Now

Get your free API key and start using Network Info in seconds.

Get Free API Key