diff --git a/engine/src/networking/com/jme3/network/Network.java b/engine/src/networking/com/jme3/network/Network.java index 4a327a8fe..c7843df26 100644 --- a/engine/src/networking/com/jme3/network/Network.java +++ b/engine/src/networking/com/jme3/network/Network.java @@ -90,7 +90,7 @@ public class Network */ public static Server createServer( String gameName, int version, int tcpPort, int udpPort ) throws IOException { - UdpKernel fast = new UdpKernel(udpPort); + UdpKernel fast = udpPort == -1 ? null : new UdpKernel(udpPort); SelectorKernel reliable = new SelectorKernel(tcpPort); return new DefaultServer( gameName, version, reliable, fast );