EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.82k stars 419 forks source link

No UDP packets received from server #115

Open Naudot opened 8 years ago

Naudot commented 8 years ago

Hello,

We are developing on Android 5.1.1 and we are using Kryonet 2.22.0-RC1.

We manage to send packets to the server from clients via UDP but it seems that UDP packets send from the server are not received by clients.

In the debug logs, we get "DEBUG: [kryo] write: PacketMovement" but the client receives nothing except KeepAlive packets.

Currently we are using the "Connection" object of the received method from the server to resend data to our clients.

What are we doing wrong ?

russnes commented 8 years ago

I also have this issue. It seems to work for TCP though.

S66D commented 8 years ago

Have a look it this it might help https://github.com/EsotericSoftware/kryonet/pull/111