1. 安装NC
opkg update
opkg install netcat
2. 测试
nc -l -u -p 8001 这样就可以在0.0.0.0上侦听udp的8001端口
nc -u 192.168.1.123 8001 在这里输入字符串, 就会回显一个相同的字符串,表示链接是OK的
3. 退出
CTRTL+Z
本文指导您如何在系统中安装并测试UDP服务,包括安装NC工具、设置监听端口及验证连接。
1. 安装NC
opkg update
opkg install netcat
2. 测试
nc -l -u -p 8001 这样就可以在0.0.0.0上侦听udp的8001端口
nc -u 192.168.1.123 8001 在这里输入字符串, 就会回显一个相同的字符串,表示链接是OK的
3. 退出
CTRTL+Z
2090

被折叠的 条评论
为什么被折叠?