Table of Contents

Method IsPublicAddress

Namespace
LMKit.Agents.Tools.BuiltIn.Net
Assembly
LM-Kit.NET.dll

IsPublicAddress(IPAddress)

Whether the address belongs to the public internet. Everything a server-side fetch could use to reach its host's own world is refused: loopback, unspecified, RFC1918, link-local (cloud metadata lives there), CGNAT, documentation and benchmarking ranges, multicast, broadcast, reserved, and their IPv6 equivalents including ULA; IPv4-mapped IPv6 is judged as the mapped IPv4.

public static bool IsPublicAddress(IPAddress address)

Parameters

address IPAddress

Returns

bool
Share