Traceroute Command in Python and How To Read a Traceroute

On operating systems like Windows or Linux, there is an invaluable tool called the traceroute command (on Windows, the equivalent command is called tracert). This command-line tool enables system administrators or network engineers to troubleshoot common networking issues.

Administrators use a traceroute to probe for bottlenecks whenever a user complains that connection to a website or server is slow. In addition, the traceroute command is used if a server is unreachable as it will show which particular part of the network route is problematic.

How to Traceroute With Geolocation Information in Fedora

You can always traceroute an IP address in Fedora using the standard traceroute command. However, if you are looking to find out more about each hop’s geolocation information inside the trace, you should consider using the IP2Trace command tool. 

In addition to the geolocation information, such as country, region, city, latitude, and longitude, IP2Trace also provides you with the ZIP code, time zone, ISP, domain name, area code, weather, mobile information, elevation, and usage type of an IP address. The type of data returned will depend on the IP2Location BIN data that you are using for the lookup, which can be downloaded for free.