Трассировка порта может пригодиться в том случае, когда сервер сам по себе доступен, но доступа к определённому порту получить не удалось.
Для трассировки порта в ОС 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 ...
То это означает, что порт закрыт на узле, указанном в этой строке.
Как сделать 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 с указанием вашего логина. После этого наши специалисты проанализируют полученные данные и сообщат вам ответ.
В том случае если необходимо проверить доступность определённого порта 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.
Welcome to tracetcp
tracetcp is a command line traceroute utility for WIN32 that uses TCP SYN packets rather than ICMP/UDP packets that the usual implementations use, thus bypassing gateways that block traditional traceroute packets.
In addition to providing the functionality of the standard traceroute utility tracetcp allows a trace to be performed over any TCP port. This allows the discovery of what ports a filewall blocks and also the presence of any transparent proxies that have been put in place.
Downloads
Download the latest version here
Issues
Any issues found can be raised here.
I can also be contacted on twitter:
Usage
Click here for a selection of example traces.
From the command prompt:
tracetcp host [options]
where host = hostName|ipAddress[:portNumber|serviceName]
if portNumber or serviceName is not present then port 80 (http)
is assumed.
Options:
-? Displays help information.
-c Select condensed output mode
-h start_hop Starts trace at hop specified.
-m max_hops Maximum number of hops to reach target.
-n No reverse DNS lookups for each node.
-p num_pings # of pings per hop (default 3).
-r p1 p2 Multiple traces from port p1 to p2.
-t timeout Wait timeout milliseconds for each reply.
-v Displays version information.
-s p1 p2 Easy port scan mode. gives the same result as
setting the following options:
-cnr p1 p2 -h 128 -m 1 -p 1
-F Disables the Anti-flood timer. Normally tracetcp
waits *at least* 0.5 seconds between sending out
each packet, because if the packets are sent too
fast some host seem to detect this as some form of
flood and stop responding for a time. This option
disables the 0.5 second timer, so the traces occur
faster.
-R Use raw socket interface to send/receive packets
this will not work on XP sp2.
(you still need winpcap installed)
-g address use the specified host as a a gateway to remote
systems rather than the default gateway.
Examples:
tracetcp www.microsoft.com:80 -m 60
tracetcp post.sponge.com:smtp
tracetcp 192.168.0.1 -n -t 500
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 
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.
