1

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?

Sean Lin
  • 11
  • 2

1 Answers1

0

GeoIP database.

Most languages have a wrapper (either 1st- or 3rd-party) so you don't need to work with the DB directly, e.g.

See also: Getting the location from an IP address

rmharrison
  • 3,890
  • 1
  • 19
  • 33