1

I've been working on project and we use IP geo-location using an API to identify user's country. The legacy code has an edge case when there is no country information for a particular IP. I have been planning to remove this, since from understanding, every public IP on the internet has a country. If the API didn't return country for a particular IP, it means their database is not good, and we should switch to a better service

My question is, are their public IP ranges on the internet which doesn't belong to any country? What are the example of those?

6
  • So you would rather have wrong information instead? Aug 20, 2021 at 20:05
  • 1
    Where from do you have the information that every IP belongs to a country? I would rather say that no IP belongs to a y specific country. Example s of IPs that certainly don't is satalite links, or anycast addresses.
    – NiKiZe
    Aug 20, 2021 at 20:10
  • @MichaelHampton Not sure what do you mean by "wrong". If every IP belong to a country, there can't be a wrong value?
    – CodePanda
    Aug 20, 2021 at 21:08
  • 3
    What you probably mean is "Are there ip addresses that have not been delegated to one of the Regional Internet Registries and aren't associated with a specific geographic location?"
    – joeqwerty
    Aug 20, 2021 at 21:20
  • 4
    It is not possible to determine a country for many IP addresses from publicly available information. Most of these data providers are making guesses, and they are often wrong. Aug 20, 2021 at 21:20

0

You must log in to answer this question.

Browse other questions tagged .