How to use Traceroute for troubleshooting on Mac
In this article, we will quickly look at how to use macOS Traceroute.
What is Traceroute on a Mac?
Traceroute is a way of finding out exactly the path a message or transmission takes from one computer or device to another. As Apple explains, Traceroute is designed to “Follow the path a message takes as it travels through the network from computer to computer.”
Traceroute sounds pretty useful!
It almost sounds like something a government spy agency would use; but no, this is something Apple builds-into the whole macOS experience. It doesn't break national data protection laws either, since IP addresses - unless people or companies protect and mask them - are effectively like phone numbers. Remember, they're built on the same principals, so any accessible - (unmasked) - IP address and related details are publicly accessible.
With Traceroute, you can trace the path any message takes to another device or server, as a way of finding out if or where any connectivity issues exist, and whether your computer needs fixing. This way, if you diagnose everything at the sending end of a message, you can determine whether the problem is with the recipient or somewhere along the journey that message takes.
How to use macOS Traceroute?
There are two ways you can do this; either through Terminal or Network Utility.
1. Run Traceroute through Terminal
- Search for Terminal (either via Spotlight Search, or Applications > Utilities)
- Open Terminal
- Within Terminal, enter the following command:
‘Hostname’ could be the domain or URL of the destination that you want to trace, or the IP address of a server or device. If you are entering a website address, you don't need to use www. or https://. Simply input the address with the relevant domain ending, such as .com. Always leave a space between traceroute and the address you are trying to search for.
Now it will probably take a few minutes.
It should then give you a list of connections between your Mac and the destination address. If you see the * symbol it means the search has timed out, and either needs to be attempted again or the search isn't possible (which might indicate connectivity problems en route or protected addresses that prevented the search from going further).
Another way to do this is through the Network Utility macOS app.
2. Run Traceroute through Network Utility
- For Mac devices running anything prior to Mojave, you can find Network Utility in Applications > Utilities
- For devices running a new macOS (including the new one coming out in 2019), Apple have buried Network Utility in a Systems folder, which means searching for it through Spotlight. Place a shortcut on your Desktop if this feature needs to be accessed fairly often.
- Now go to the Traceroute tab
- Enter the the domain or URL of the destination that you want to trace, or the IP address of a server or device.
- Click Trace to start the search
- This will probably take a few minutes. It should then give you a list of connections between your Mac and the destination address.
How effective your searches are - regardless of the method used to access Traceroute - will depend on Internet speeds and connectivity. If your Internet isn't working as it should, there is quite a bit that can be done with the right tools.
Want to speed up the Internet on your Mac?
With a Mac, and with the right tools, you have a lot of control over how fast - or not - you experience the Internet. It isn't only a problem your network provider can fix. You can manage a lot of this yourself with a simple and easy-to-use tool.
- Use the Menu feature to show your current Internet speeds (upload and download)
- If this isn't where you need it to be, there are a few things you can try:
- Use the Privacy feature in CleanMyMac X to clear out old Internet data; it also cleans up out-dated Wi-Fi connections.
- To pick up even more speed improvements, use the DNS cache tool to enhance your Mac’s connectivity.
CleanMyMac X is a really useful Mac performance improvement app. It is an easy-to-use app that includes a whole load of features that improve how a Mac runs, including its network and browser connections, so you can be sure that it is running as smoothly as possible.