diff --git a/src/arma/ber4j/BattlEyeClient.java b/src/arma/ber4j/BattlEyeClient.java index aefa1d5..23de795 100644 --- a/src/arma/ber4j/BattlEyeClient.java +++ b/src/arma/ber4j/BattlEyeClient.java @@ -72,7 +72,7 @@ public boolean connect(String password) throws IOException { datagramChannel = DatagramChannel.open(); // datagramChannel.configureBlocking(true); // remove? - datagramChannel.bind(new InetSocketAddress(host.getPort())); + datagramChannel.bind(new InetSocketAddress(0)); sendBuffer = ByteBuffer.allocate(datagramChannel.getOption(StandardSocketOptions.SO_SNDBUF)); sendBuffer.order(ByteOrder.LITTLE_ENDIAN); // ArmA 2 server uses little endian