Linux测试UDP端口(nc)

 



# nc -vuz serveripaddress 123


Connection to serveripaddress 123 port [udp/ntp] succeeded!



结果证明UDP 123端口正常监听

 

-u                   使用UDP传输协议
-v                   显示指令执行过程
-w<超时秒数>           设置等待连线的时间
-z                   使用0输入/输出模式,只在扫描通信端口时使用

 


 

原文地址:https://www.cnblogs.com/thescentedpath/p/NC.html