About
traceroute shows every router a packet passes through on the way to a destination, with the delay at each hop. Use it when a host answers slowly or not at all. It can probe with UDP, ICMP or TCP.
Install it
pkg install traceroute
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
traceroute -n example.com Trace the path with numeric addresses only. Avoids slow reverse lookups on each hop. traceroute -m 20 example.com Cap the search at twenty hops. Useful for a far or silent destination. traceroute -I example.com Probe with ICMP instead of UDP. Often gets through networks that block the default probe. traceroute -T -p 443 example.com Probe with TCP on port 443. The trace then resembles ordinary web traffic. traceroute -w 1 -q 1 example.com Shorten the wait and send one probe per hop. Finishes a rough trace quickly. Worked example
Run traceroute -n example.com and this is what you should see.
$ traceroute -n example.com
1 192.168.1.1 1.204 ms 1.102 ms
2 10.20.0.1 8.431 ms 8.502 ms
3 * * *
4 93.184.216.34 11.702 ms 11.664 ms Developed by
Dmitry Butskoy .