tldextract has an ip address function: https://github.com/john-kurkowski/tldextract/blob/master/tldextract/remote.py#L64 do we want to use this instead of what we have?