• Your shopping cart is empty!

IP2Location™ Traceroute Application

IP2Location™ Traceroute Application is an open-source command line application that performs traceroute with geolocation information to detect country, region, city, latitude, longitude, ZIP code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, MCC, MNC, mobile brand name, elevation, and usage type. It is using IP2Location BIN database for quick local lookup without external API. It supports Linux and MacOS.

Two languages are supported, which is C and Python.

Traceroute Application For C
Installation - For C
  1. Unzip the archive master.zip.
  2. Navigate to working directory.
    cd ip2location-traceroute-master
  3. Run the following make commands:
    make
    make install
  4. Run the traceroute application
    ip2trace -p 1.2.3.4 -d /usr/share/ip2location/DB10.BIN
Usage - For C

Syntax

ip2trace -p [IP Address/Hostname] -d [Path to IP2Location BIN Database] [options]

Options

  • -d, --database Specify the path of IP2Location BIN database file.
  • -h, -?, --help Display help guide.
  • -p, --ip Specify an IP address or hostname.
  • -t, --ttl Set the max number of hops. (Default: 30)
  • -v, --version Print the version.

Example

%> ip2trace -p 8.8.8.8 -d /usr/share/ip2location/DB24.BIN -t 20
IP2Location Geolocation Traceroute (ip2trace) Version 8.0.0
Copyright (c) 2021 IP2Location.com [MIT License]
https://www.ip2location.com/free/traceroute-application

1.  50.97.82.1 0.6350 ms ["US","United States of America","Texas","Dallas","32.939491","-96.838730","75244","SoftLayer Technologies Inc.","softlayer.com","-06:00","T1","1","214/469/972","USTX0327","Dallas","-","-","-","129.0","DCH"]
2.  173.192.118.142 0.5120 ms ["US","United States of America","Texas","Dallas","32.939491","-96.838730","75244","SoftLayer Technologies Inc.","softlayer.com","-06:00","T1","1","214/469/972","USTX0327","Dallas","-","-","-","129.0","DCH"]
3.  50.97.18.194 1.1260 ms ["US","United States of America","Texas","Dallas","32.939491","-96.838730","75244","SoftLayer Technologies Inc.","softlayer.com","-06:00","T1","1","214/469/972","USTX0327","Dallas","-","-","-","129.0","DCH"]
4.  72.14.203.120 27.7610 ms ["US","United States of America","California","Mountain View","37.405991","-122.078514","94043","Google LLC","google.com","-08:00","T1","1","650","USCA0746","Mountain View","-","-","-","32.0","DCH"]
5.  108.170.252.161 2.2220 ms ["US","United States of America","California","Mountain View","37.405991","-122.078514","94043","Google LLC","google.com","-08:00","T1","1","650","USCA0746","Mountain View","-","-","-","32.0","DCH"]
6.  108.170.230.115 1.2490 ms ["US","United States of America","California","Mountain View","37.405991","-122.078514","94043","Google LLC","google.com","-08:00","T1","1","650","USCA0746","Mountain View","-","-","-","32.0","DCH"]
7.  8.8.8.8 1.0820 ms ["US","United States of America","California","Mountain View","37.405991","-122.078514","94043","Google LLC","google.com","-08:00","T1","1","650","USCA0746","Mountain View","-","-","-","32.0","DCH"]
Sample IP2Location Databases (BIN)
Sample Packages IPv4 IPV6
IP2Location DB1 Sample BIN File Download (813.09 kB) Download (346.88 kB)
IP2Location DB2 Sample BIN File Download (34.86 MB) Download (367.79 kB)
IP2Location DB3 Sample BIN File Download (18.90 MB) Download (362.33 kB)
IP2Location DB4 Sample BIN File Download (50.80 MB) Download (381.62 kB)
IP2Location DB5 Sample BIN File Download (28.82 MB) Download (368.98 kB)
IP2Location DB6 Sample BIN File Download (60.35 MB) Download (386.87 kB)
IP2Location DB7 Sample BIN File Download (57.45 MB) Download (391.10 kB)
IP2Location DB8 Sample BIN File Download (67.21 MB) Download (397.25 kB)
IP2Location DB9 Sample BIN File Download (33.28 MB) Download (373.31 kB)
IP2Location DB10 Sample BIN File Download (72.53 MB) Download (402.66 kB)
IP2Location DB11 Sample BIN File Download (33.92 MB) Download (374.50 kB)
IP2Location DB12 Sample BIN File Download (73.11 MB) Download (403.95 kB)
IP2Location DB13 Sample BIN File Download (32.64 MB) Download (370.96 kB)
IP2Location DB14 Sample BIN File Download (74.40 MB) Download (404.38 kB)
IP2Location DB15 Sample BIN File Download (36.87 MB) Download (379.47 kB)
IP2Location DB16 Sample BIN File Download (78.94 MB) Download (410.84 kB)
IP2Location DB17 Sample BIN File Download (39.46 MB) Download (381.54 kB)
IP2Location DB18 Sample BIN File Download (85.75 MB) Download (422.86 kB)
IP2Location DB19 Sample BIN File Download (69.99 MB) Download (398.15 kB)
IP2Location DB20 Sample BIN File Download (88.12 MB) Download (424.42 kB)
IP2Location DB21 Sample BIN File Download (40.20 MB) Download (382.57 kB)
IP2Location DB22 Sample BIN File Download (92.04 MB) Download (428.03 kB)
IP2Location DB23 Sample BIN File Download (70.54 MB) Download (399.50 kB)
IP2Location DB24 Sample BIN File Download (93.21 MB) Download (429.67 kB)