windows中进行ping命令ping ip地址的时候,不能指定端口,而且当服务器禁止了ping请求时,ping命令功能失去了效果,但很多时候需要进行ping ip和ip指定的端口时就需要用到这个tcping工具了。
1、介绍:
tcping.exe is a console application that operates similarly to 'ping', however it works over a tcp port. There are many different implementions of this floating around, written independently by different people. There are many like it, but this one is mine.
2、下载地址:
(1)、32位下载地址:https://download.elifulkerson.com//files/tcping/0.39/tcping.exe
(2)、64位下载地址:https://download.elifulkerson.com/files/tcping/0.39/x64/tcping64.exe
3、安装:
(1)、下载工具包,重命名为tcping
(2)、复制文件到windows中 C:\Windows\System32
4、使用方法:
(1)、Win+R 进入运行窗口
(2)、输出cmd 进入命令窗口
(3)、tcping ip和端口用法:
tcping [-flags] server-address [server-port]
5、相关参数:
-t : 让命令持续运行,知道使用ctrl + c指令退出 -n 5 : 发送命令4次 -i 5 : 发送命令的间隔时间为5秒 -w 0.5 : 等待响应的间隔时间为0.5 -d : 发送命令的时间 -b 1 : enable beeps (1 for on-down, 2 for on-up, 3 for on-change, 4 for always) -r 5 : for instance, relookup the hostname every 5 pings -s : automatically exit on a successful ping -v : print version and exit -j : include jitter, using default rolling average -js 5 : include jitter, with a rolling average size of (for instance) 5. --tee : mirror output to a filename specified after '--tee' --append : Append to the --tee filename rather than overwriting it -4 : 优先使用IPv4 -6 : 优先使用IPv6 -c : only show an output line on changed state -g 5 : for instance, give up if we fail 5 times in a row HTTP Options: -h : 使用http模式 -u : 与-h命令连用,输出目标的url --post : use POST rather than GET (may avoid caching) --head : use HEAD rather than GET --proxy-server : specify a proxy server --proxy-port : specify a proxy port --proxy-credentials : specify 'Proxy-Authorization: Basic' header in forma
6、实例:
(1)、tcping ip 端口
(2)、tcping 域名 端口