[api refactor] Expose methods for determining if an IP address is public or private.