使用工具netcat
1,安装netcat
centos安装
yum install netcat
ubuntu安装
apt install netcat
2,使用方式
服务端命令(26426为端口号)
sudo nc -u -l 26426
客户端命令(xx.xx.xx.xx为服务端IP地址)
nc -u xx.xx.xx.xx 26426
连接后可以互相发送字符串。
使用工具netcat
1,安装netcat
centos安装
yum install netcat
ubuntu安装
apt install netcat
2,使用方式
服务端命令(26426为端口号)
sudo nc -u -l 26426
客户端命令(xx.xx.xx.xx为服务端IP地址)
nc -u xx.xx.xx.xx 26426
连接后可以互相发送字符串。