Tor Metrics IPAddress Country Flag Codes

so, on Relay Search a lot of the country flags are wrong. I THINK that the website uses IP2Location to present the country and flag.
If so, I think it needs to be updated.
Example: Relay Search is in Singapore, and all ip location databases show it in Singapore (IP2Location, ipinfo.io, DB-IP, IP-Registry.io, IPGeolocation.io, IPapi.io, ipbase.com)
I am wondering if those are not also updated in the Tor Browser ???

As far as I know, the Tor Project now uses the IPFire database, including for the metrics site. The database is updated almost every day and all necessary files are available Here.

As for your example, the metrics site uses only IPv4 address data to display the country. Singapore is determined by the IPv6 database.

Due to the fact that the Tor Project uses geolocation data from IPFire, any inaccuracies associated with geolocation should be reported to IPFire.

I believe that ideally, the Tor Project should monitor geolocation discrepancies between IPv4 and IPv6 addresses for all Tor network relays and periodically send requests for clarification to IPFire. Also, if geolocation differs between IPv4 and IPv6, it is necessary to somehow inform users about this, for example:

  • In Tor Browser, display the country flag for both the IPv4 address and the IPv6 address, if they are different
  • On the mitrics website, display both countries and mark with an additional flag “Conflicting geolocation”
1 Like