2.19.3.7. tcproute/tcptraceroute

tcproute/tcptraceroute — the utility is similar to tracert/traceroute, but uses the TCP protocol instead of ICMP or UDP protocols.

  1. Download and install the Npcap library. Be sure to enable "Install Npcap in WinPcap API-compatible Mode" during installation:
  2. Download the archive with tcproute and extract it to any location you like.
If the error "Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'PcapDotNet.Core.dll' or one of its dependencies. The specified module could not be found. at tcproute.Program.Main(String[] args)" occurs when executing the command, the solution may be to install the 32-bit (x86) version of Microsoft Visual C++ 2010 Redistributable Package.
  1. Open command prompt and navigate to the directory where the tcproute archive was extracted. To open the command prompt immediately in the desired directory, open the directory in Explorer, type cmd in its address bar and press Enter:
  2. Execute the command (instead of 80 specify the desired port, instead of example.com — the address of the desired site without http:// or https:// at the beginning and / at the end):
    tcproute -p 80 example.com

  3. The program will display a list of available network interfaces and ask you to specify the number of the one you want to use. Interface names and numbers may vary from device to device. Enter the desired interface number and press Enter.
  4. Wait for the results of execution:
  1. Open terminal.
  2. Install the Homebrew package manager (if not installed):
    1. Execute the command:
      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    2. At the prompt "Press RETURN to continue or any other key to abort", press Enter.
    3. When prompted for a password, enter the password for your account on your device (no characters will appear on the screen when you enter a password) and press Enter.
    4. Wait for the installation to complete.
  3. Execute the command:
    brew install tcptraceroute

  4. Wait for the installation to complete.
  1. Open terminal.
  2. Execute the command (instead of example.com, specify the address of the desired site without http:// or https:// at the beginning and / at the end, instead of 80 — the desired port):
    sudo tcptraceroute example.com 80

  3. At the password prompt, enter the root password for the device (no characters will be displayed on the screen when you enter the password) and press Enter.
  4. Wait for the results of execution:
Content