+ 2

IP lookup API optimization

I'm trying to limit my number of requests to an IP geolocation API, I want to know if this will accurately determine user country; My IP table Id |-----ip-----| Country| 1 | 1.194.121.200 | USA If I have the above in my Database, can I use same country for an IP (1.194.208.105) having same integers in their first two octets, to avoid another API request?

3rd Jul 2020, 7:16 PM
Peace Imion
Peace Imion - avatar
1 Réponse
+ 3
I just checked and the answer is no! 5.149.63.0/24 belongs to Localnet AG, Switzerland, but 5.149.64.0/24 belongs to AVAX.net, Bosnia and Herzigowina.
3rd Jul 2020, 8:21 PM
Schindlabua
Schindlabua - avatar