Public IP discovery
Discover the externally observed IPv4/IPv6 source address.
Endpoints
Use discovery_ipv4/discovery_ipv6 from settings, normally ending in /api/v1/dyndns/discovery/4 and /discovery/6. GET returns {"address":"…"} without credentials. HEAD does not enter the unauthenticated discovery branch.
curl --fail-with-body "$DISCOVERY_IPV4_URL"
curl --fail-with-body "$DISCOVERY_IPV6_URL"
A canonical, globally routable address is required. Private/reserved sources can return 422; unavailable address families can return 503. Feature, configured-host and source-IP rate checks still apply. This is not STUN or enumeration of local interfaces.
Routing, NAT and proxies
Use genuinely IPv4-only/IPv6-only hosts with working routes. The observed address can be a NAT gateway/VPN exit, not the intended inbound service address. Do not publish it without confirming that relationship. IPv4 success does not prove IPv6 connectivity; handle families independently and retain unavailable-family records.
Only a configured trusted transport peer may supply X-Nexus-Client-IP, after stripping client-supplied values. Clients must not override discovery using that header. User-supplied X-Forwarded-For chains are not trusted. See updates for use of results and errors for retry handling.