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

DiscoverHost - server logs reply but client times out #108

Open m6246 opened 8 years ago

m6246 commented 8 years ago

I am running a server on desktop and am doing a discover host through the client on an android device, both on the same WIFI network.

In the log I can see that the server responds to the discoverhost UDP package sent by the client (which has the ip 192.168.178.14).

Why isn't the client responding to the discovery while the server apparently sends a reply?

[edit] I have to add, that this only happens between a desktop acting as a server, and android device acting as a client. When both are run on desktop, discovery succeeds. Also, when running a server on android, auto discovery from whatever environment always fails.

Using the latest source files from Github

server log (4 times replied to a discovery request) server

client log (2 times host discovery) client