Network connectivity problems can be frustrating, especially on dedicated servers or VPS environments where uptime is critical.
One of the most useful tools for diagnosing these issues is the traceroute command. It helps identify where a connection to a remote server slows down or fails, giving you insight into network path issues.
In this guide, you will learn how to perform a traceroute, interpret its results, and troubleshoot network problems effectively.
Table of Contents
What Is a Traceroute?
A traceroute is a network diagnostic tool that shows the route data takes from your computer (or server) to a target destination, such as a website or IP address.
It lists all the intermediary routers (called “hops”) between the source and destination, along with the time it takes to reach each one.
Each hop gives valuable clues about where packets are delayed or dropped, making traceroute an essential command for diagnosing routing or latency issues.
Why Use Traceroute?
You can use traceroute to:
- Pinpoint the location where a network connection experiences slowdown or failure.
- Detect routing problems between your ISP and the destination server.
- Check for latency spikes or packet loss.
- Provide diagnostic information when contacting your hosting provider’s support team.
How to Run Traceroute on Different Operating Systems
- Windows
- Press Windows + R, type cmd, and press Enter to open the Command Prompt.
- Enter the following command:
tracert domain.com
(Replace domain.com with the hostname or IP address you want to test.)
- Sample Output:
Tracing route to domain.com [93.184.216.34] over a maximum of 30 hops: 1 1 ms <1 ms <1 ms 192.168.1.1 2 15 ms 10 ms 20 ms isp.gateway.net 3 45 ms 30 ms 50 ms example-backbone.net 4 60 ms 62 ms 59 ms 93.184.216.34
- Trace complete.
- Linux / macOS
- Open Terminal.
- Run the following command:
traceroute domain.com
(If traceroute isn’t installed, use sudo apt install traceroute on Debian/Ubuntu or sudo yum install traceroute on CentOS/RHEL.)
- Sample Output:
traceroute to domain.com (93.184.216.34), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 0.678 ms 0.543 ms 0.612 ms 2 isp.gateway.net (203.0.113.1) 15.532 ms 14.233 ms 14.122 ms 3 example-backbone.net (203.0.113.5) 45.873 ms 44.761 ms 46.023 ms 4 93.184.216.34 (93.184.216.34) 60.540 ms 61.234 ms 62.120 ms
Understanding Traceroute Output
- Each line in the output represents a hop, showing:
- The hop number (sequence in the route).
- The hostname/IP address of the router.
- Response times (latency) in milliseconds across three attempts.
- Important Points:
Common Traceroute Issues and Fixes
Conclusion
This way, running a traceroute is one of the simplest yet most effective ways to identify where network issues occur between your system and a remote server.
If you are using a dedicated server or VPS, traceroute can help you or your hosting provider quickly pinpoint routing or latency issues.
For deeper analysis or assistance with interpreting traceroute results, contact our support team; they can help you restore smooth, stable connectivity.
Want to test your network connectivity too? Learn How to use the ping command and how to perform a ping test on Linux