[ imattau/ncc-browser ] Discover endpoint candidates for hosted services
The service form can now find endpoints from the current page, the host's interfaces and the local router instead of asking the publisher to invent URLs.
Candidates are classified as loopback (owner only), LAN (same network), global IPv6 (firewall-dependent), the current HTTPS page (verified), an onion address, or a public IPv4 address (unverified). Link-local and unique-local IPv6 addresses are skipped, the page scheme and path are preserved, and a remote public page only offers its own address.
The router WAN address is read over UPnP (SSDP plus GetExternalIPAddress) with a NAT-PMP fallback from the Linux default gateway; results are cached for five minutes. 100.64.0.0/10 is reported as carrier-grade NAT, private WAN as double NAT, and a public WAN still requires a forwarded, confirmed port. Nothing contacts an external address service yet; that remains an explicit opt-in.
The draft form shows the candidates with confidence labels and warnings, and auto-discovers when opened from Publish this page. Adds reachability tests and extends the CDP smoke to discover endpoints and select one.
https://github.com/imattau/ncc-browser/commit/d541d17aaaa30dd78c6f128f731b709506f25b5b