Internet geolocation

From LinuxReviews
Jump to navigationJump to search
Network-wired.png

Internet geolocation (GeoIP) is what it sounds like: Locating the geographical location of a Internet-connected device or service. This has historically been done by looking IP addresses up in a database. The advent of smartphones and other smart devices has made it possible to lookup a devices exact location using GPS, nearby Wi-Fi hot-spots and other data if those markers are available to the operating system.

GeoIP Databases[edit]

GeoIP databases are exactly what it sounds like: Databases with subnets and IP addresses matched to geographical locations. There are online services and databases capable of providing the location of an IP address down to country, province, city and, in some rare cases, street.

MaxMinds GeoIP databases[edit]

The best go-to solution for GeoIP lookups using a local database used to be MaxMinds GeoIP databases. MaxMind changed their Terms Of Service on Decmeber 30th, 2019. It has not been legal or possible to download their databases without registering them since then. It is still possible to use their older databases if you have them or you can find them. There is a fair chance that you already have a MaxMind database, elasticsearch and other software have the MaxMind GeoLite2-City.mmdb database file in their package. These files can still be used, the only issue is that they become more and more outdated as time passed since December 2019 increases.

IP2Location IP-COUNTRY databases[edit]

The IP2Location geolocation service has been established since 2002. The IP2Location LITE database is being licensed under Creative Commons Attribution-ShareAlike 4.0 International License. It has the database in CSV (SQL database) and BIN database. You need to sign-up for an account at www.ip2location.com to download the latest updates. You can access to database with states, city, coordinates, ZIP codes and area codes.

Software77 IP to Country Database[edit]

The Software77 GeoIP database, available from software77.net/geo-ip/, is a great, completely free and regularly updated GeoIP database. The only huge problem with this database is that it is, as the name indicates, a IP to Country database. This is the database you are looking for if that is what you need. It is obviously not what you're looking for if you need more detailed information such as provinces, cities or other more accurate data.

PHP solutions[edit]

Iriven PHP GeoIPCountry Library, available from Iriven PHP GeoIPCountry Library, is a really fast and easy way to do IP to country lookups. It uses the Software77 database described above. The library converts the Seven77 database into a ton of simple PHP files with lists of IP subnets. Those files can then be used to turn IP addresses into ISO country codes. It's a quite nice solution if you want a fast and easy way to turn IP address into country codes as part of some PHP-based project.


avatar

Anonymous (ce09a574)

7 months ago
Score 0

131.161.252.143 143.202.208.8 181.40.127.218 181.40.81.114 181.40.127.28 181.40.89.38 181.40.127.170 181.40.125.230 181.40.19.51 181.40.124.130 181.40.92.74 181.40.86.206 181.40.83.210 181.40.122.122 190.128.219.210 190.128.171.6 181.120.254.123 181.120.127.101 181.120.67.235 181.121.129.133 181.120.97.218 181.120.188.242 181.120.212.182 181.121.83.209 181.174.160.40 186.16.204.194 190.23.67.66 190.52.169.28 190.52.169.175 190.52.171.117 190.52.184.63 190.52.171.30 190.52.173.117 190.104.170.6 190.104.175.90 190.128.170.226 190.128.173.234 190.128.133.134 190.128.183.102 190.128.181.102 190.128.167.62 190.128.138.154 190.128.160.110 190.128.228.158 190.128.222.66 190.128.226.62 190.128.202.235 190.128.229.150 190.128.222.186 190.128.224.150 190.128.236.74 190.128.245.46 190.128.218.178 190.128.216.147 190.128.228.70 190.128.238.86 190.128.253.230 190.128.234.46 190.128.229.26 190.128.251.5 190.128.232.70 190.128.225.106 190.128.236.37 190.211.243.126 190.211.240.122 191.97.121.176 200.10.231.195 200.10.229.189 200.85.37.74 200.85.40.179 200.85.48.30 200.108.134.58 200.108.137.2 200.108.138.58 201.217.28.84 201.217.12.190 201.217.23.230 201.217.51.242 201.217.43.146 201.217.41.182 201.217.51.156 201.217.57.246 201.217.45.75 201.217.36.13 201.222.49.70 201.222.55.226 201.222.55.254 190.23.9.3 181.40.89.94 181.40.126.98 181.40.93.14 181.40.122.19 181.40.126.98 181.40.93.14 181.40.122.19 181.40.89.94 190.52.169.57 190.52.175.225 190.52.174.222 190.52.191.109 190.104.136.98 190.128.169.142 190.211.240.67 201.217.39.45 190.128.218.238 190.52.128.18 186.16.163.24 181.40.117.234 181.40.84.38 181.40.92.178 190.52.186.111 190.128.221.94 190.128.227.174 181.120.212.99 181.122.56.201 201.222.49.42 190.52.190.20 190.211.243.146 190.128.222.94 190.128.183.182 177.250.84.43 201.217.56.102 201.217.45.98 201.217.37.169 131.161.255.178 143.255.140.140 190.52.188.137 190.121.174.186 177.250.65.35 200.108.138.44 181.120.125.194 181.120.92.194 190.211.242.78 201.222.52.250 201.217.39.20 201.217.17.252 190.23.12.161 181.120.123.63 181.120.213.242 177.250.50.68 190.128.210.190 200.85.40.180 200.3.250.4 190.128.136.210 190.104.170.202 181.120.106.105 181.121.132.196 177.250.176.208 190.211.242.102 181.121.99.243 181.40.91.154 190.128.194.90 177.250.78.81 177.250.252.187 201.217.5.102 177.250.32.72 143.202.211.63 190.104.128.178 190.23.109.188 190.128.232.22 190.23.61.52 181.120.214.155 190.128.198.222 190.113.95.66 186.16.204.195 177.250.129.72 138.186.60.70 132.255.164.158 132.255.164.154 177.250.143.26 201.222.48.95 190.23.76.124 181.120.253.82 177.250.180.219 190.104.157.2 181.121.102.119 190.128.178.130 190.23.126.60 186.16.203.110 181.40.112.106 177.250.80.41 190.128.208.26 190.52.176.226 181.121.103.95 181.120.214.173 177.250.196.96 181.120.24.121 181.40.127.218 177.250.75.173 190.93.179.12 186.0.190.227 177.250.162.169 190.128.160.210 190.128.183.166 177.251.53.131 190.52.129.196 181.120.253.43 181.121.15.214 181.40.77.66 186.16.14.91 177.251.159.124 190.128.183.193 177.250.147.85 181.121.5.152 177.251.194.189 181.120.213.109 181.120.123.133 181.40.123.70 177.251.250.16 143.202.211.32 177.251.122.44 201.217.12.57 190.104.129.195 186.16.203.122 186.16.9.253 181.120.97.137 181.122.34.173 177.251.69.178 200.108.130.154 190.128.238.70 143.255.140.21 143.202.210.88 138.186.60.234 181.120.190.95 181.40.119.254 190.128.222.148 181.40.123.233 177.251.170.21 190.128.227.38 190.128.222.162 177.251.125.198 177.251.141.223 181.40.127.246 201.217.12.57 201.217.12.190 177.251.72.79 186.16.29.41 181.122.52.112 181.122.9.92 181.120.255.117 177.250.50.247 201.222.51.143 131.161.253.14 190.128.136.214 181.120.88.64 181.120.126.62 190.52.180.196 190.23.241.153 190.23.240.212 181.122.39.93 181.123.128.28 181.122.145.194 201.222.53.50 190.23.205.55 181.122.3.186 201.217.56.11 186.16.29.91 181.120.179.203 138.186.61.38 190.104.152.71 181.122.55.198 177.251.147.237 177.250.200.250 143.255.143.131 200.85.40.181 181.120.215.31 181.122.111.112 181.120.125.56 138.186.60.46 200.85.48.30 181.120.125.33 181.120.20.36 190.128.238.86 190.23.234.145 181.120.188.250 143.202.211.156 181.122.78.66 177.251.68.253 177.251.236.23 181.122.184.240 177.250.123.235 177.251.109.214 177.251.97.22 190.104.165.118 190.23.236.46 190.23.116.25 190.23.90.66 181.122.83.125 190.128.203.54 190.128.137.74 143.202.211.45 181.120.126.61 181.123.7.40 181.121.108.91 177.251.155.77 177.250.72.78 143.202.211.115 190.128.197.58 181.123.128.181 177.250.233.24 177.251.35.116 177.251.229.9 190.23.64.70 186.17.188.239 181.122.31.195 181.121.108.91 181.120.136.175 143.202.210.29 143.255.140.207 143.202.209.237 200.85.49.106 200.85.44.50 181.121.84.126 181.122.16.5 201.222.55.106 190.128.251.5 190.128.173.138 190.52.171.117 190.52.174.222 190.23.151.193 181.121.129.117 143.202.211.77 181.40.118.133 143.202.210.94 200.108.132.178 200.3.251.178 181.120.247.98 181.120.178.88 181.40.123.74 170.254.219.5 138.186.61.78 190.128.224.98 181.120.126.60 190.23.193.126 190.52.162.132 186.214.221.67 190.104.167.234 190.52.182.99 181.124.114.225 177.250.57.42 186.16.204.70 190.128.244.14 143.255.142.220 190.52.129.33 143.202.208.116 181.120.135.181 181.120.72.161 143.255.140.4 201.217.31.10 201.217.7.187 190.128.137.42 190.128.141.138 186.16.12.227 181.40.64.153 181.40.22.98 181.40.92.242 181.40.64.138 181.40.18.230 143.202.210.112 131.196.192.30 190.128.205.110 181.120.22.222 181.120.190.201 181.120.215.127 181.40.123.235 181.120.252.80 181.120.240.196 181.120.156.94 181.120.127.27 200.85.56.78 190.23.15.160 181.122.82.213 181.40.81.38 190.23.185.136 190.128.255.150 181.120.122.233 143.202.209.114 138.186.61.126 201.222.53.34 190.128.202.236 190.23.96.20 200.108.142.50 190.128.132.242 143.255.143.162 177.250.66.104 181.120.107.74 181.121.92.252 190.128.235.141 190.23.68.158 201.217.4.237 131.161.253.145 181.120.252.82 181.120.120.67 181.122.212.209 181.120.120.240 181.124.114.249 181.40.46.204 181.40.89.54 195.246.103.19 200.85.40.178 200.61.225.74 190.128.232.101 190.128.154.22 186.16.10.72 186.16.9.131 181.121.64.188 181.120.108.156 132.255.166.181 190.128.205.214 190.104.156.102 181.40.79.218 181.120.134.9 181.120.123.32 181.40.19.226 181.120.8.141 181.40.123.231 45.228.137.186 181.121.69.166 181.123.114.238 138.186.60.174 181.122.25.110 181.124.114.9 181.123.7.78 190.128.170.58 181.122.43.217 190.52.169.167 181.40.124.246 190.128.236.214 181.40.115.250 201.222.49.66 190.128.155.182 177.251.219.152 181.120.125.146 181.120.200.233 181.121.97.238 181.40.19.227 190.128.138.182 201.217.4.220 201.222.54.34 177.251.232.188 181.120.217.191 181.122.120.177 181.122.212.182 134.19.151.130 143.202.208.96 181.123.7.216 45.228.137.218 181.120.177.82 181.120.242.136 181.122.120.245 181.123.117.84 181.40.118.230 181.40.87.210 190.128.131.186 190.128.150.70 190.128.158.254 190.128.232.74 190.23.195.110 190.23.53.176 190.52.169.9 190.52.175.136 200.3.253.202 200.3.254.210 201.217.4.217 201.217.4.235 190.23.74.165 201.222.51.110 181.120.191.249 181.40.115.234 190.23.4.207 190.52.184.36 200.3.255.198 181.126.221.20 190.104.142.134 177.251.130.31 181.126.89.168 186.16.208.242 181.120.214.189 181.126.82.200 181.126.83.46 190.104.144.246 190.23.168.138 177.250.226.240 177.251.195.226 181.120.190.253 181.126.83.108 181.126.83.197 168.194.161.85 177.250.71.60 177.251.118.111 181.40.81.61 190.104.158.242 190.128.228.6 190.128.234.154 200.9.4.29 131.196.192.32 138.186.60.89 143.255.142.33 181.121.54.174 131.100.185.37 177.250.100.212 177.251.62.97 186.16.209.182 190.104.144.242 190.128.245.86 190.128.250.158 201.217.55.97 168.194.161.108 177.250.58.198

190.104.150.66
Add your comment
LinuxReviews welcomes all comments. If you do not want to be anonymous, register or log in. It is free.