Table of Contents

IP locations

Finds where an IP address is: online providers (ipapi.co, ipinfo.io, ip2location.io, Cloudflare), a local database of country ranges, and composites that try them in turn.

When to use it

  • You show users where they connect from.
  • You split traffic by country and need each address's country without going online.

Which package to take

  • Net.IpLocations: the providers and the composites.
  • Net.IpLocations.Providers.SqliteProvider: an offline range database in SQLite.

Its packages

Package What it does
VpnHood.Net.IpLocations Finds where an IP address is: online providers (ipapi.co, ipinfo.io, ip2location.io, Cloudflare), a local database of country ranges, and composites that try them in turn. Guide · API
VpnHood.Net.IpLocations.Providers.SqliteProvider SQLite-backed offline IP range provider for VpnHood. Overview · API