When you connect to a website, the data that flows between your device and the server that website is hosted on must be routed through several devices (typically routers) before it gets to its destination. Traceroute is a command that shows you the route data takes to get from your device (such as a computer or phone) to a given website, and it can be used to diagnose problems with your network. Internet service providers often ask for the data from a traceroute command if you're calling with internet issues. In this article, we go over how to run a traceroute command on any device, including your Android or iPhone. Keep reading to learn how.
Ways to Run Traceroute
On a computer, open Command Prompt (Windows) or Terminal (Mac, Linux) and enter the command tracert (host) or traceroute (host) . Macs can also use the Traceroute tool in Network Utility. You'll need to install a third-party app to use traceroute on a phone or tablet.
Steps
-
Open Start. Click the Windows logo in the bottom-left corner of the screen. The Start menu will pop up.
-
Type in command prompt . Doing this searches your computer for the Command Prompt program.Advertisement
-
Click Command Prompt. It's at the top of the menu. Command Prompt will open.
-
4Determine a website for which you want to trace the route. For example, if you want to see a list of gateways between your computer and Facebook, you would use Facebook's website.
-
Enter the "traceroute" command. Type in tracert website.com —making sure to replace website.com with the name and extension for your preferred website (e.g., facebook.com )—and press ↵ Enter .
- You don't need to provide the "https://" or "www." section of the website's address.
- If you have the website's IP address, you can use it instead of the URL.
-
Review the results. Command Prompt will deliver up to 30 different gateways (also called "hops") through which the IP package passes. Once you see "Trace complete" appear below the list of hops, your trace has successfully run its course.
- If you see any blank trace entries, you can ignore them—they signify that the trace is being returned as a result rather than passing through a gateway. [1] X Research source
-
Open Spotlight. Click the magnifying glass-shaped icon in the top-right corner of the screen to do so.
-
Type in network utility . This will search your computer for the Network Utility program.
-
Open Network Utility. Double-click Network Utility near the top of the search results. Doing so will prompt the Network Utility window to open. [2] X Research source
-
Click Traceroute . It's a tab at the top of the Network Utility window.
-
Enter a website's address. In the text box near the top of the window, type in the address (or IP address) of the website to which you want to trace a path.
- For example, to trace a path to wikiHow's website, you would enter wikihow.com here.
- You don't need to provide the "https://" or "www." section of the website's address.
-
Click Trace . It's a blue button on the right side of the page. Doing so will prompt Network Utility to begin tracing the path to your selected website.
-
Review the results. Traceroute will bring up a list of the gateways through which your trace travels on the way to its destination.
- If you see any blank trace entries, you can ignore them—they signify that the trace is being returned as a result rather than passing through a gateway.
-
Download the iNetTools app. Skip this step if you already have iNetTools installed on your iPhone. Open the App Store , then do the following:
- Tap Search
- Tap the search bar.
- Type in inettools
- Tap inettools - ping,dns,port scan
- Tap GET next to iNetTools.
- Enter your Touch ID or Apple ID password.
-
Open iNetTools. Tap OPEN in the App Store, or tap the radar display-shaped iNetTools app icon on one of your iPhone's Home Screens.
-
Tap Trace Route . It's in the middle of the screen.
-
Tap the "Host Name or IP Address" text box. You'll find this option near the top of the screen. Doing so brings up your iPhone's on-screen keyboard.
-
Enter a website's address. Type in the address (or IP address) of the website to which you want to trace a path.
- For example, to trace a path to Google's closest server, you would enter google.com here.
- You don't need to provide the "https://" or "www." section of the website's address.
-
Tap Start . It's in the top-right corner of the screen. iNetTools will begin tracing a route to your specified address.
-
Review the results. Once the spinning wheel across from the "Result" heading disappears, you can review the address of each gateway through which your trace passed on its way to the destination.
- If you see any blank trace entries, you can ignore them—they signify that the trace is being returned as a result rather than passing through a gateway.
-
Download the PingTools app. Skip this step if you already have PingTools installed on your Android. Open the Google Play Store , then do the following:
- Tap the search bar.
- Type in pingtools
- Tap PingTools Network Utilities in the results.
- Tap INSTALL
- Tap ACCEPT when prompted.
-
Open PingTools. Tap OPEN in the Google Play Store, or tap the PingTools app icon in your Android's App Drawer.
-
Tap ACCEPT when prompted. Doing so agrees to PingTools' terms of use and opens the app.
- If you've opened PingTools before, you might be able to skip this step.
-
Tap ☰ . It's in the top-left corner of the screen. A pop-out menu will appear.
-
Tap Traceroute . This option is in the middle of the pop-out menu.
-
Tap the text box. It's at the top of the screen. Doing so will bring up your Android's on-screen keyboard.
- If a website's address is already in this text box, remove it before proceeding.
-
Enter a website's address. Type in the address (or IP address) of the website to which you want to trace a path.
- For example, to trace a path to Twitter's closest server, you would enter twitter.com here.
- You don't need to provide the "https://" or "www." section of the website's address.
-
Tap TRACE . It's in the top-right corner of the screen. Doing so will prompt PingTools to begin tracing a route to your selected address.
-
Review the results. Once the trace is complete, you can review the address of each gateway through which your trace passed on its way to the destination.
- If you see any blank trace entries, you can ignore them—they signify that the trace is being returned as a result rather than passing through a gateway.
-
Open Terminal. This step will vary depending on your version of Linux, but most distributions will require you to open the Menu and then select Terminal from the list of programs.
- You can also press Alt + Ctrl + T to open Terminal on most Linux distributions.
-
Install Traceroute. To do so:
- Type in sudo apt install traceroute and press ↵ Enter .
- Type in your password and press ↵ Enter .
- Type y and press ↵ Enter if prompted.
- Wait for Traceroute to install.
-
3Determine a website for which you want to trace the route. For example, if you want to see a list of gateways between your computer and YouTube, you would use YouTube's website.
-
Enter the "traceroute" command. Type in traceroute website.com —making sure to replace website.com with the name and extension for your preferred website (e.g., youtube.com )—and press ↵ Enter .
- You don't need to provide the "https://" or "www." section of the website's address.
- If you have the website's IP address, you can use it instead of the URL.
-
Review the results. Once the trace is complete, you can review the address of each gateway through which your trace passed on its way to the destination.
- If you see any blank trace entries, you can ignore them—they signify that the trace is being returned as a result rather than passing through a gateway.
Community Q&A
-
QuestionI don't see a GO tab on my Mac. Does it go by another name?Community AnswerMaybe you have a Mac with a GO tab in another language. GO can be said in many different languages and ways.
-
QuestionWhen I write a command tracer to Google in Windows, I get this message: "tracer is not recognized as an internal or external command". What should I do?Community Answerit looks like you typed in "tracer google.com", when actually the command is "tracert google.com".
-
QuestionWhat do I do if the request timed out on every hop?Community AnswerCall your internet provider, or check the DNS of the address that you're running the traceroute to.
Video
Tips
- The number of gateways between you and your selected website does not include any blank entries. For example, if you see 12 gateways with three blank entries, there are only 9 gateways between you and the website.Thanks
- The list of gateways between you and the selected website can change at any time.Thanks
References
About This Article
1. Open the search bar.
2. Type "command prompt".
3. Click Command Prompt
.
4. Type "tracert wikihow.com
.
5. Press Enter
.