2

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
  • 21
  • 2

2 Answers2

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
  • 4,730
  • 2
  • 20
  • 35
0

as an option: mtr from fork with extra ip address info, for example from this fork https://github.com/yvs2014/mtr085 with mtr -y5,5,4,1 targethost you will get City Region Country Host ...stats in output

yvs2014
  • 303
  • 2
  • 7