Private (local) addresses
On Linux, ip -br a lists interfaces with CIDRs. RFC1918 IPv4 space (10/8, 172.16/12, 192.168/16) and ULA IPv6 (fd00::/8) are not globally routable—they identify you on a LAN or VPN overlay, not on the public internet.
Which path is used?
ip route get 1.1.1.1 shows the source IP and outbound interface the kernel would select. That source is what upstream NAT may translate to a public address.
Public (egress) discovery
HTTPS services such as ifconfig.me or api.ipify.org return the IPv4 or IPv6 address their server saw on the TCP connection—use curl -4 or curl -6 to force a family. Behind CGNAT several subscribers may share one public IPv4; the address can change between sessions.
Windows and macOS
PowerShell: Get-NetIPAddress -AddressFamily IPv4 | Where PrefixOrigin -ne WellKnown for configured addresses; still use an external echo for WAN. macOS: ipconfig getifaddr en0 for common Wi-Fi.
Related: public vs private IP, how to find your IP address, routing table commands, curl vs wget.