geoip: use net_utils.get_public_ip

with backwards compat (if locally set)