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)
上一篇 2022年6月23日 上午8:16
下一篇 2022年6月23日 上午8:16


相关推荐

  • Ubuntu16.04安装中文输入法_ubuntu下载搜狗输入法

    Ubuntu16.04安装中文输入法_ubuntu下载搜狗输入法阅读目录阐述第一步:首先需要给Ubuntu18.04安装Chinese语言包支持gnome界面unity界面第二步:ibus输入法安装(先Ctrl+Alt+T调出Terminal窗口)第三步在键盘输入来源(Inputsources)中添加中文拼音输入法阐述Ubuntu18.04系统想安装中文输入法(利用ibus输入法配置)只要三步。注意:你的Ubuntu需要可以上网!!!因为要下载一系列安装包第一步:首先需要给Ubuntu18.04安装Chinese语言包支持先打开Setting

    2026年4月14日
    5
  • phpstorm clone 码云项目到本地 Version Control 不显示[通俗易懂]

    phpstorm clone 码云项目到本地 Version Control 不显示

    2022年2月8日
    58
  • C++23种设计模式(21)-访问者模式

    C++23种设计模式(21)-访问者模式访问者模式 表示一个作用于某对象结构中的各元素的操作 它使你可以在不改变各元素的类的前提下定义作用于这些元素的新操作 访问者模式适用于数据结构相对稳定的系统 它把数据结构和作用于结构上的操作之间耦合解脱开 使得操作几何可以相对自由地演化 访问者模式的目的使要把处理从数据结构中分离出来 很多系统可以按照算法和数据结构分开 如果这样的系统有比较稳定的数据结构 又有易于变化的算法的话 使用访问者模式就是比较合适的 include iostream include list list iostream

    2026年3月17日
    2
  • 告别指令,迎接AI同事!Kimi“OK Computer”模式震撼登场

    告别指令,迎接AI同事!Kimi“OK Computer”模式震撼登场

    2026年3月12日
    3
  • 常用黑盒测试方法_黑盒测试各种方法

    常用黑盒测试方法_黑盒测试各种方法定义:黑盒测试又称功能测试。黑盒测试就是把测试对象看成一个不能打开的黑盒子,在完全不考虑程序的内部结构和处理过程的情况下,只依据程序的需求规格说明书,检查程序的功能是否符合他的功能说明。黑盒测试主要发现的缺陷类型:1、功能错误或遗漏;2、界面错误;3、数据库错误;4、性能错误;5、初始化和终止错误。黑盒测试的基本思路:黑盒测试是以用户的角度,从输入数据与输出数据的对应关系出发进行测试的,又称为数据驱动测试。黑盒测试是在程序外部接口进行的测试。黑盒测试选择…

    2022年10月4日
    6
  • 将方波转化为三角波电路图(简易波形发生器)

    单片机课设波形发生器,产生方波、三角波、正弦波、锯齿波波形幅度可调、频率可调。

    2022年4月16日
    88

发表回复

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

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