How to use TCP traceroute

Unlike the more traditional traceroute which sends either UDP or ICMP ECHO packets, TCP Traceroute is using TCP packets and, thus, can bypass the most common firewall filters.

Follow the instructions below in order to run TCP Traceroute:



For Windows users

Windows does not have a native utility to run TCP traceroute. To run it on Windows, you will need to install the Npcap library and download the tracetcp utility.

To install the Npcap library, follow these steps:

1. Download the Npcap library.
2. Double-click on the downloaded executable file open it and start installation.
3. Review the License agreement and click the I Agree button:



4. On the next page click the Install button:



The next step is to download tracetcp.

Once the archive is downloaded, extract the files from the .zip archive and move them to the C:\Windows\System32\ folder:



IMPORTANT: By default, the TCP traceroute can be run only if the working directory was changed via CMD to the folder where the traceTCP executable is located (i.e. C:\Windows\System32\tracetcp_directory).

In order to be able to run it from anywhere in the system, it is required to add the path of the traceTCP executable to the system environment variables.

For this, go to the Start menu >> Edit System Environment Variables >> Environment Variables >> select "Path" variable and click on "Edit" >> click on "New" >> paste the path to the traceTCP folder in its name:



Then press "OK".

Now you can run TCP traceroute in the following way:

1. To open the Command Prompt (CMD), press Win + R keymatch. Run dialog box will be opened.
2. Type cmd and click on the OK button:



3. Type the command:

tracetcp domainname.tld

NOTE: domainname.tld should be replaced with your domain name, a server’s name or its IP address.



4. Press Enter.

That’s it!



For Mac users

You can install TCP Traceroute app in the following way:

1. Press command+space keymatch >> type Terminal >> press enter/return key.

2. Type in Terminal the following command:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

and press enter/return key. Wait for it to finish.

3. Type the following command and wait for the installation to be finished:

brew install tcptraceroute

4. Done. Now you can use TCP Traceroute command line tool. All you need is to type

sudo tcptraceroute domainname.tld

and press enter/return key:



NOTE 1: domainname.tld should be replaced with your domain name, a server’s name or its IP address.

NOTE 2: when executing this command, you will be prompted to enter the password for the administrator account you are currently logged in as.



For Linux users

To run TCP traceroute in Linux, open Terminal >> type the following command and press the Enter key:

traceroute -T domainname.tld

NOTE: domainname.tld should be replaced with your domain name, a server’s name or its IP address.


That's it!

              
                      Need any help? Contact our HelpDesk

Updated
Viewed
55024 times

Need help? We're always here for you.

notmyip