How to do a Traceroute on Windows, Linux and OSX

September 23, 2009 by iWeb Technologies in: Web Hosting Articles, iWeb Articles

We ask frequently customers to send us a traceroute and I thought it would be useful for a few to know how to use this command.

A traceroute is the tracking of a packet sent to a server. During its route, this packet goes through several network devices (routers, firewalls etc.) and then goes finally at the server. With the traceroute, you can see the IP as well as the response time between each barrier (router, firewall…).

We use then the traceroute to check the problem between your computer and the server. We can see quickly where the problem is and fix it.

tracert

Here are the steps for Windows and for OSX:

Windows : Start > Programs > Accessories > Command Line
or Start > Execute > type “cmd”

The command is: tracert domain.name
You can use this command with an IP adress as well: 192.168.0.1

Linux or Mac OSX: Applications > Utilities > Terminal
or Spotlight > type “Terminal”

The traceroute command is : traceroute domain.name
You can use this command with an IP adress as well: 192.168.0.1

Web : You can also use this Web tools on domaintools.com.

4 comments tags: ,  | 

Comments

  1. Just a note: In English Windows, it’s Start -> Run. In Vista, you can type “cmd” into the box that appears when you click Start

    Also, once the user performs the first tracert to see how long it takes, they could do this:
    tracert domain.name > my.txt
    start my.txt

    That will launch the text file in the default application, making it easier to copy/paste that elsewhere, i.e. a reply to a ticket. ;-)

  2. hey Isaac, thanks for your great comments!

  3. Important note: By default, Windows traceroute uses ICMP. Linux/OSX/BSD use UDP.

    If you do not see your traceroute ends correctly, it may be because of the firewall on the server. Traceroute iweb.com should work normally.

  4. Hi. You can also trace route online from multiple locations here http://www.magic-net.nl/traceroute.php