测试网络通断

tcp

服务端运行

nc -ulp {端口}

客户端运行

nc -u {ip} {端口}

 在客户端输入字符,如果连接正常,服务端会同样输出

猜你喜欢

转载自www.cnblogs.com/8000cabbage/p/12283197.html