有了 ping,为什么还要 tcping
传统的 ping 是基于 icmp 的,云服务商出于安全考虑可能会禁用 icmp,譬如亚马逊云 AWS,这种情况下不能使用 ping,可以改用 tcping。
Windows 可用的 tcping 工具
Windows 系统未自带 tcping 功能,需要找第三方软件。
Windows 上最广泛使用的的 tcping 工具大概要数
https://elifulkerson.com/projects/tcping.php 。
除此之外,有人写了 python 版本的 tcping 命令行工具,链接:https://github.com/zhengxiaowai/tcping 。只需要 pip install tcping 即可安装,使用起来也非常方便。