在linux操作系统上,按照一个nodejs实现的UDP/TCP server,
node udpserver.js 启动UDPserver后,进程中可以看到确实服务起来了,但是另外一台机器(同一网段)不能连接成功。
原因在于linux的防火墙没有关闭。
关闭防火墙指令: service iptables stop
启动防火墙指令: service iptables start
在linux操作系统上,按照一个nodejs实现的UDP/TCP server,
node udpserver.js 启动UDPserver后,进程中可以看到确实服务起来了,但是另外一台机器(同一网段)不能连接成功。
原因在于linux的防火墙没有关闭。
关闭防火墙指令: service iptables stop
启动防火墙指令: service iptables start