tcping检测端口

1.下载

tcping.exe - ping over a tcp connection (elifulkerson.com)

  

 

 2.放置路径

C:\Windows\System32

 3.使用

-4,优先使用IPv4

-6,优先使用IPv6

-h,使用http模式

-t,让命令持续运行,直到使用ctrl + c指令退出

-n 数字,发送命令的次数,默认4次,tcping -n 6 ​ ​www.baidu.com​​ 会tcping 百度6次,也可以跟其他数字。

-i 数字,发送ping命令的时间间隔,默认1s,可以为小数

-w 数字,等待响应的时间间隔,默认2s,可以为小数

-d 使输出的每一行显示时间和日期

-f 强制ping命令至少发送一个比特(byte)

-g 数字,失败指定次就放弃(注意默认是80端口,若其他端口没开也算失败)

-b 数字,开启蜂鸣器,参数4会一直响铃,tcping -b 4 ​ ​www.baidu.com​​

-c 只显示改变的信息(ping时间很短一般不会改变)

-r 数字,每发送指定个数据包,就重新查找主机一次(通过DNS或路由查找)

-s ping通就立即退出

-u 与-h命令连用,每一行输出目标的url(-h,使用http模式,-u单独使用没有任何效果)

-v 显示版本信息

-j 使用默认的方法,求ping的均值减小波动,网络有一定的不稳定性时,用此参数可以减小波动

-js 数字,用指定个实例求平均值减小波动,使用这个参数,系统会tcping 指定次,然后求出平均值作为一次结果显示,减小波动

--tee file_path,将结果输出到指定位置,tcping –tee /data/test.txt192.168.0.100,会把ping的结果保存在/data下的test文件中

–file 从文件中获得ping的来源;在/data下新建一个test.txt文件,并输入要tcping的所有ip或域名,一行一个,然后执行命令tcping –file /data/test.txt,就会依次tcping文件中指定的地destination 可以是DNS地址、IP地址、URL(需要使用-h,http模式)。使用http模式时,不要加https//或:port,例如:tcping ​ ​ ​http://www.jd.com:80l就会失败,使用tcping​​​​ ​ ​www.jd.com​​ 8080就会成功

port 数字  指定tcp端口(1-65535),如果不指定,默认是80

--header  在头部显示时间和日期,与–tee显示的格式差不多 

--block    tcping不通的等待时间,默认是20秒(很长)。–block可以把-w参数冲突掉 ,例如tcping --block ​ ​www.baiu.com网址不正确,显然tcpping不通,默认会等待20s​​​ 。 tcping -w 0.5 –block ​ ​www.baiu.com还是会等20s,而不是0.5s,因为–block选项会把-w选项冲突掉​​。

通过tcping软件能够知道对应IP的某一端口是否能够连通。 -------------------------------------------------------------- tcping.exe by Eli Fulkerson Please see http://www.elifulkerson.com/projects/ for updates. -------------------------------------------------------------- Usage: C:\Users\dell1\Desktop\tcping64.exe [-flags] server-address [server-port] Usage (full): C:\Users\dell1\Desktop\tcping64.exe [-t] [-d] [-i interval] [-n ti mes] [-w ms] [-b n] [-r times] [-s] [-v] [-j] [-js size] [-4] [-6] [-c] [-g coun t] [-S source_address] [--file] [--tee filename] [-h] [-u] [--post] [--head] [-- proxy-port port] [--proxy-server server] [--proxy-credentials username:password] [-f] server-address [server-port] -t : ping continuously until stopped via control-c -n 5 : for instance, send 5 pings -i 5 : for instance, ping every 5 seconds -w 0.5 : for instance, wait 0.5 seconds for a response -d : include date and time on each line -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' -4 : prefer ipv4 -6 : prefer ipv6 -c : only show an output line on changed state --file : treat the "server-address" as a filename instead, loop through file li ne by line... 详细参数请查看”--help“
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值