Трассировка порта может пригодиться в том случае, когда сервер сам по себе доступен, но доступа к определённому порту получить не удалось.
Для трассировки порта в ОС Windows необходимо скачать следующие программы:
- WinPcap: с сайта разработчика или с нашего сайта (версия 4.1.3).
Данную программу необходимо запустить и установить на компьютер. - TraceTCP: с GitHub или с нашего сайта: в архиве или exe-файл.
Если вы скачали программу в архиве, распакуйте файл tracetcp.exe в любое место на компьютере.
Для удобства последующего использования утилиты, вы можете разместить файл tracetcp.exe в директории C:\Windows или C:\Windows\System32 – это позволит не указывать путь к исполняемому файлу при каждом использовании утилиты.
И так, вы установили WinPcap и распаковали TraceTCP.
Нажмите на клавиатуре сочетание клавиш Win+R и введите «cmd», после чего нажмите кнопку «OK». В результате должна запуститься командная строка.
Если вы распаковали файл tracetcp.exe не в папку C:\Windows или C:\Windows\System32, а, например, на рабочий стол, то выполните следующую команду:
cd "%userprofile%\Desktop"
Данная команда изменит рабочую папку командной строки на папку рабочего стола текущего пользователя.
Для папки «Загрузки» текущего пользователя команда будет такая:
cd "%userprofile%\Downloads"
После того, как вы изменили рабочую директорию командной строки, либо если изначально разместили файл в папке C:\Windows или C:\Windows\System32, выполните следующую команду (заменив host – на IP- или DNS-адрес сервера, а port – на порт, к которому хотите выполнить трассировку, например 80 – HTTP или 443 – HTTPS):
tracetcp host:port
Таким образом мы получим следующий результат выполнения tracetcp:
Основным показателем доступности порта будет предпоследняя строка в выводе TraceTCP:
Destination Reached in XXX ms. Connection established to ...
Данная строка означает, что порт, на который вы пытаетесь достучаться, открыт и TraceTCP получила к нему доступ.
Если же в выводе будет:
Destination Reached in XXX ms. Port closed on ...
То это означает, что порт закрыт на узле, указанном в этой строке.
To use tracert, you must be running Microsoft Windows.
- Open a Command Prompt. …
- In the Command Prompt window, type ‘tracert’ followed by the destination, either an IP Address or a Domain Name, and press Enter. …
- The command will return output indicating the hops discovered and time (in milliseconds) for each hop.
- What TCP port does traceroute use?
- How do I run a traceroute in Windows 10?
- Can you traceroute to a port?
- What packets does traceroute use?
- Does Linux use ICMP for traceroute?
- How do I know my port?
- What does a port number look like?
- Can you traceroute UDP?
- How do I run a traceroute in PowerShell?
- What port does SSH use?
- Does traceroute use ping?
- What is the difference between tracert and traceroute?
- What do hops mean in traceroute?
What TCP port does traceroute use?
This method uses the same «half-open technique» as used for TCP. The default destination port is 33434.
How do I run a traceroute in Windows 10?
To run a traceroute on a Windows 10 computer, open the Windows search box and type CMD into the search bar. Then open the Command Prompt app and type in tracert followed by a space and then the destination URL or IP address. Finally, hit Enter.
Can you traceroute to a port?
The traceroute command depends on an open UDP port range of base to base + nhops — 1 at the destination host. If a UDP port is not available, this option can be used to pick an unused port range. Uses the next IP address in numerical form as the source address in outgoing probe packets.
What packets does traceroute use?
Traceroute most commonly uses Internet Control Message Protocol (ICMP) echo packets with variable time to live (TTL) values. The response time of each hop is calculated. To guarantee accuracy, each hop is queried multiple times (usually three times) to better measure the response of that particular hop.
Does Linux use ICMP for traceroute?
In Linux, by default, traceroute uses UDP packets with a large destination port number (33434 – 33534) that is unlikely to be used by any application at the destination host. … This forces the program to use the ICMP Echo Request (type packets, instead of UDP packets.
How do I know my port?
All you have to do is type “netstat -a” on Command Prompt and hit the Enter button. This will populate a list of your active TCP connections. The port numbers will be shown after the IP address and the two are separated by a colon.
What does a port number look like?
The port number is “tacked on” to the end of the IP address, for example, “192.168. 1.67:80” shows both the IP address and port number. When data arrives at a device, the network software looks at the port number and sends it to the right program.
Can you traceroute UDP?
2 Answers. The type of packet that is sent differs depending on the implementation. By default Windows tracert uses ICMP and both Mac OS X and Linux traceroute use UDP.
How do I run a traceroute in PowerShell?
To use tracert, simply open up either Command Prompt or PowerShell and type in the command tracert followed by a hostname or destination IP address.
What port does SSH use?
By default, the SSH server still runs in port 22.
Does traceroute use ping?
Think of traceroute as a string of ping commands. At each step along the path, traceroute identifies the hop’s IP as well as the latency to that hop. … On a Windows system, traceroute uses ICMP. As with ping , traceroute can be blocked by not responding to the protocol/port being used.
What is the difference between tracert and traceroute?
Traceroute is a command that runs tools used for network diagnostics. … On a Windows machine, this command is called tracert; on Linux and Mac, it’s called traceroute. Traceroute and tracert largely function in the same way—they map the route data takes from one point in a network to a specific IP server.
What do hops mean in traceroute?
The journey from one computer to another is known as a hop. The amount of time it takes to make a hop is measured in milliseconds. The information that travels along the traceroute is known as a packet.
Как сделать tcp-трассировку в OC Windows?
1. Скачайте и установите программу npcap
При установке не забудьте отметить следующие компоненты:
Примечание: Программа npcap не поддерживает Windows XP или более старые ОС семейства Windows. Если Вы пользуетесь такими ОС, воспользуйтесь программой winpcap.
2. Скачайте и установите программу tracetcp
-
Перейдите по ссылке
-
Скачайте архив tracetcp_v1.0.3.zip (последнюю версию)
-
Переместите файл tracetcp.exe из архива в папку C:\WINDOWS\system32
3. Откройте командную строку Windows
4. Для проведения tcp трассировки до целевого ресурса введите команду с указанием домена или ip адреса и указанием порта
Пример: tracetcp unet.by:80
Для диагностики проблем vpn подключения к серверу pptp выполняем трассировку следующим образом:
Вводим команду: tracetcp ip_адрес_впн_сервера:порт_для_подключения
Пример: tracetcp 176.107.130.44:1723
По результатам проверки мы видим что трассировка по 1723 порту не доходит до целевого сервера.
По окончанию тестирования нажмите кнопку «Stop», при помощи кнопки «Export TEXT» сохраните полученные результаты либо сделайте просто скриншот и отправьте нам на электронную почту [email protected] или в чат-боты в Telegram или Viber с указанием вашего логина. После этого наши специалисты проанализируют полученные данные и сообщат вам ответ.
Tracetcp is a tool primarily used by end users to test TCP port connectivity from the Windows command line. Instead of using ICMP or UDP packets like traditional traceroute implementations, tracetcp
uses TCP SYN packets. This allows it to bypass gateways that block traditional traceroute packets, providing a more reliable method for tracing the path of TCP traffic across a network.
To run tracetcp in Windows, two components are required:
- WinPcap
- tracetcp.exe
WinPcap allows applications to capture and transmit network packets bypassing the protocol stack, while tracetcp
is an application that sends TCP SYN packets from the source machine.
Steps to Run tracetcp
in Windows
- Download and Install WinPcap:
- Download WinPcap from its official website.
- Install WinPcap on your system by following the installation instructions.
- Download and Prepare tracetcp:
- Download the
tracetcp
ZIP file. - Extract the ZIP file.
- Copy the
tracetcp.exe
file to the C: drive.
- Download the
- Run tracetcp in windows:
- Open Command Prompt with administrative privileges.
- Navigate to the root of the C: drive
C:\Users\username>cd\
- Use the following commands to run
tracetcp
:tracetcp.exe hostname:port
ortracetcp.exe ip:port
Examples
Using hostname:
C:>tracetcp.exe google.com:443
Tracing route to 172.217.26.238 [bom05s09-in-f14.1e100.net] on port 443
Over a maximum of 30 hops.
1 2 ms 3 ms 1 ms 10.222.200.2
2 1 ms 1 ms 2 ms 144.36.206.2
3 4 ms 8 ms 2 ms 115.110.236.89 [115.110.236.89.static.bangalore.vsnl.net.in]
Using IP address:
C:>tracetcp.exe 8.8.8.8:443
Tracing route to 8.8.8.8 [google-public-dns-a.google.com] on port 443
Over a maximum of 30 hops.
1 1 ms 1 ms 0 ms 10.222.200.2
2 2 ms 1 ms 2 ms 144.36.206.2
3 4 ms 5 ms 3 ms 115.110.236.89 [115.110.236.89.static.bangalore.vsnl.net.in]
Running tcptraceroute on Linux and macOS
tcptraceroute
is a utility for tracing the path of TCP packets to a destination. It is included by default in most Unix-based distributions, but on macOS, it needs to be installed using Homebrew.
Installing tcptraceroute on macOS
To install tcptraceroute
on macOS, follow these steps:
- Install Homebrew:
- If you don’t have Homebrew installed, you can install it by running
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- If you don’t have Homebrew installed, you can install it by running
- Install tcptraceroute:
- Once Homebrew is installed, use it to install
tcptraceroute
brew install tcptraceroute
- Once Homebrew is installed, use it to install
Running tcptraceroute
The command syntax for running tcptraceroute
is as follows:
tcptraceroute hostname port
Example Usage on Linux and macOS
On some operating systems like macOS, you may need to run tcptraceroute
with root privileges. Use sudo
to achieve this. Here’s an example:
sudo tcptraceroute api.opendns.com 443
Example Output
admin-0369:Tools admin$ sudo tcptraceroute api.opendns.com 443
Selected device en0, address 192.168.10.63, port 60749 for outgoing packets
Tracing the path to api.opendns.com (67.215.92.210) on TCP port 443 (https), 30 hops max
1 192.168.10.254 1.893 ms 1.787 ms 1.123 ms
2 * * *
3 te-0-7-0-11-sur02.lowell.ma.boston.comcast.net (68.85.161.117) 11.768 ms 36.209 ms 11.473 ms
4 be-21-ar01.needham.ma.boston.comcast.net (68.85.106.45) 14.006 ms 12.382 ms 21.340 ms
5 be-7015-cr01.newyork.ny.ibone.comcast.net (68.86.90.217) 40.690 ms 67.974 ms 41.689 ms
6 ae12.edge1.newyork2.level3.net (4.68.127.1) 42.198 ms 19.511 ms 22.600 ms
7 ae-32-80.car2.sanjose1.level3.net (4.69.152.132) 121.049 ms 130.360 ms 125.898 ms
8 ae-32-80.car2.sanjose1.level3.net (4.69.152.132) 124.555 ms 139.251 ms 136.524 ms
9 open-dns-in.car2.sanjose1.level3.net (4.28.12.198) 86.392 ms 99.180 ms 88.102 ms
10 vlan130.fw1.sjc.opendns.com (67.215.78.6) 89.775 ms 88.160 ms 90.077 ms
11 api.opendns.com (67.215.92.210) [open] 126.455 ms 87.454 ms 89.881 ms
В том случае если необходимо проверить доступность определённого порта TCP на маршруте следования данных необходимо использовать утилиту tracetcp.
Для проведения трассировки нужно скачать и установить две программы: tracetcp и WinPcap.
Для удобства работы tracetcp.exe из архива нужно положить в одну из системных папок: C:\WINDOWS или C:\WINDOWS\system32
Tracetcp утилита для работы в командной строке.
Для запуска оболочки, выполните следующие действия:
Появившееся черное окно — командная строка, в которой мы и будем производить диагностику проблемной ситуации. Для предоставления результата в службу технической поддержки, можно сделать снимок экрана, или скопировать результат как текст.
В командной строке введите tracetcp domain.tld:1433 (в нашем примере в качестве имени домена указан domain.tld и номер порта 1433. Эти данные нужно изменить на имя домена и номер порта которые вам необходимо проверить).
После завершения задания необходимо сохранить результат работы tracetcp и вы сможете увидеть, на каком участке маршрута дальнейшее движение пакетов невозможно.
$ tracetcp domain.tld:1433
Tracing route to 217.16.20.30 [domain.tld] on port 1433
Over a maximum of 30 hops.
1 1 ms 1 ms 1 ms 192.168.0.1 [wintermute]
2 10 ms 13 ms 9 ms 10.78.128.1
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 ... continues until maximum number of hops reached.