UDP无法收到问题

场景描述:

1 环境安装的是宝塔,防火墙开启,TCP能连接到端口,能收到发送过来的数据,UDP能连接,能发送,但是收不到数据包

解决办法:

关闭防火墙

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态

firewall-cmd --state 
  • 停止firewall
systemctl stop firewalld.service 

 

  • 禁止firewall开机启动
systemctl disable firewalld.service 

猜你喜欢

转载自blog.csdn.net/liuyuinsdu/article/details/114241260