EsotericSoftware / kryonet

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

cant connect to server #85

Closed ByteAge closed 8 years ago

ByteAge commented 9 years ago

Client connects to server but on server listener just disconnect method raises and doesn't receive any object. i use GenyMotion on client side and real phone on server side. i do everything exactly like documentation said thanx

nrallakis commented 8 years ago

If i understand correctly you haven't started your client on a new thread. Instead of client = new Client(); use new Thread(client);