tcping小工具使用

tcping小工具使用说明tcping是一个用来ping某个地址的某个端口是否开放的。下载地址:https://elifulkerson.com/projects/tcping.php安装下载的是一个单独的exe文件,将该文件复制到某个目录下,然后手动指定该exe所在目录或配置环境变量即可使用。使用方法帮助信息:C:\Users\Administrator>tcping————–…

大家好,又见面了,我是你们的朋友全栈君。

说明

tcping是一个用来ping某个地址的某个端口是否开放的。
下载地址:https://elifulkerson.com/projects/tcping.php

安装

下载的是一个单独的exe文件,将该文件复制到某个目录下,然后手动指定该exe所在目录或配置环境变量即可使用。

使用方法

帮助信息:

C:\Users\Administrator>tcping
--------------------------------------------------------------
tcping.exe by Eli Fulkerson
Please see http://www.elifulkerson.com/projects/ for updates.
--------------------------------------------------------------

Usage: tcping [-flags] server-address [server-port]

Usage (full): tcping [-t] [-d] [-i interval] [-n times] [-w ms] [-b n] [-r times] [-s] [-v] [-j] [-js size] [-4] [-6] [-c] [-g count] [-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'
 --append : Append to the --tee filename rather than overwriting it
 -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 line by line
          Note: --file is incompatible with options such as -j and -c as it is looping through different targets
          Optionally accepts server-port.  For example, "example.org 443" is valid.
          Alternately, use -p to force a port at command line for everything in the file.
 -g 5   : for instance, give up if we fail 5 times in a row
 -S _X_ : Specify source address _X_.  Source must be a valid IP for the client computer.
 -p _X_ : Alternate method to specify port
 --fqdn : Print domain name on each line if available
 --ansi : Use ANSI color sequences (cygwin)
 --color: Use Windows color sequences

HTTP Options:
 -h     : HTTP mode (use url without http:// for server-address)
 -u     : include target URL on each line
 --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 format username:password

Debug Options:
 -f     : force tcping to send at least one byte
 --header : include a header with original args and date.  Implied if using --tee.
 --block  : use a 'blocking' socket to connect.  This prevents -w from working and uses the
            default timeout (as long as 20 seconds in my case).  However it can detect an actively
            refused connection vs a timeout.

        If you don't pass server-port, it defaults to 80.

具体例子:

  • ping 80端口是否通
C:\Users\Administrator>tcping www.baidu.com 80

Probing 115.239.210.27:80/tcp - Port is open - time=24.563ms   --is open
Probing 115.239.210.27:80/tcp - Port is open - time=17.904ms
Probing 115.239.210.27:80/tcp - Port is open - time=22.006ms
Probing 115.239.210.27:80/tcp - Port is open - time=18.062ms

Ping statistics for 115.239.210.27:80
     4 probes sent.
     4 successful, 0 failed.  (0.00% fail)
Approximate trip times in milli-seconds:
     Minimum = 17.904ms, Maximum = 24.563ms, Average = 20.634ms
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/152474.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 用javascript教你打造一个免费的PC微信机器人《五》微信群发

    用javascript教你打造一个免费的PC微信机器人《五》微信群发上图先,来个效果图同一时间,向很多个群,发送你要发送的消息。现实中有很多解决方案,一个员工对应一个群,先把发送内容粘贴进文本框,读秒,同时按发送键。按键精灵,脚本?(没试过,有可能可以)还有其他方案没?一言不合,上代码先拿到你要发送的群或者好友列表(websocket,http去github去看httpclient.js):functionget_wxuser_list(){constj={id:getid(),type:USER_LIST,cont

    2022年5月4日
  • 学习使用Java Quartz任务调度(一)

    学习使用Java Quartz任务调度(一)//本着以交流经验和学习的态度来分享知识,如果有误,请批评指出,不胜感激!现在企业中基本均有涉及到任务调度和异步执行器,在Java方向,提供了开源的Quartz、JDK提供了Timer。在以上基础前提下,Java5.0通过java.util.concurrent这个新包以及它下边的诸多类和接口,提供了方便的线程池调用。在本篇文章中,我们主要使用Quartz来作为解决任务调度的工具。为什么不…

    2022年7月13日
  • mysql — 清空表中数据

    mysql — 清空表中数据

    2021年6月2日
  • java 中的switch

    java 中的switchswitch语句也是面试题出现比较多的一个问题。大部分问题主要是针对switch可用于什么类型上。枚举类大家都没什么疑问。你写一个switch语句编译一下,然后看它的class文件就可以知道,不管是char,short,byte类型都是转化为int之后走的判断。而long,float,double转换为int都会丢失进度,boolean无法转换为int,所以能用在switch…

    2022年7月8日
  • Keras学习(一)—— Keras 模型(keras.model): Sequential 顺序模型 和 Model 模型

    Keras学习(一)—— Keras 模型(keras.model): Sequential 顺序模型 和 Model 模型KerasModel模型Keras中文文档Keras模型Sequential顺序模型Sequential使用方法一个简单的Sequential示例构建方法inputshape输入的形状(格式)complication编译training训练Model模型Model使用方法compile编译fit进行训练evaluate函数进行评估Keras中文文档首先了解Keras…

    2022年11月1日
  • 集群和负载均衡_分布式负载均衡

    集群和负载均衡_分布式负载均衡基于集群的动态反馈负载均衡策略基于动态反馈机制的集群负载均衡算法研究目前应用最为广泛的集群计算技术主要分为三大类:高可用性集群技术、高性能计算集群技术和负载均衡集群技术。德国的CarlAdamPetri于1962年在他的博士论文《自动机通信》中提出了Petri网的概念,它是一种适合于描述异步、并发、分布式系统的图形数学工具。动态WRR调度算法…

    2022年10月13日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号