While I use mtr to do a network diagnostic(traceroute/ping/etc.) I must copy and paste the IP address to google the real location(like city,region,country)
Can I get the location of the IP address using some database?
Is there any package?
GeoIP database.
Most languages have a wrapper (either 1st- or 3rd-party) so you don't need to work with the DB directly, eg
JavaScript: https://dev.maxmind.com/geoip/geoip2/javascript/
See also: Getting the location from an IP address
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.