tcp
服务端运行
nc -ulp {端口}
客户端运行
nc -u {ip} {端口}
在客户端输入字符,如果连接正常,服务端会同样输出
测试网络通断
原文:https://www.cnblogs.com/8000cabbage/p/12283197.html