Finding an IP Address in the Ranges
Learn about finding the location associated with the IP address.
We'll cover the following...
Here’s what the main data looks like:
Press + to interact
table geolite.blocks limit 10;
The table command is SQL standard, so we might as well use it:
iprange │ locid
═════════════════════╪════════
1.0.0.0/24 │ 617943
1.0.1.0-1.0.3.255 │ 104084
1.0.4.0/22 │ 17
1.0.8.0/21 │ 47667
1.0.16.0/20 │ 879228
1.0.32.0/19 │ 47667
1.0.64.0-1.0.81.255 │ 885221
1.0.82.0/24 │ 902132
1.0.83.0-1.0.86.255 │ 885221
1.0.87.0/24
...