用到工具

在服务器上开启端口监听
选中udp server,点击创建按钮

设置服务器监听端口

在客户端连接服务器端口
选中udp客户端,点击创建

输入服务器地址 远程端口和本地端口,本地端口只要没被占用都可以使用 ,点击确认


发送数据

可以看到数据已发送

查看服务器上数据是否收到
可以看到最近一次的数据

抓包软件上我们也可以看到数据

选中udp server,点击创建按钮
设置服务器监听端口
选中udp客户端,点击创建
输入服务器地址 远程端口和本地端口,本地端口只要没被占用都可以使用 ,点击确认
可以看到数据已发送
可以看到最近一次的数据
抓包软件上我们也可以看到数据