kryonet
kryonet copied to clipboard
Not able to find anyone when discovering hosts
From [email protected] on October 27, 2013 17:13:03
What steps will reproduce the problem?
- Code: Server server = new Server(); server.start(); server.bind(17771, 5000); Client client = new Client(); List<InetAddress> addresses = client.discoverHosts(17771, 5000); System.out.print(addresses);
- Run Code on two Computers which are in the same network
- Both PCs are able to create, start and bind the servers (without any errors)
- Both PCs print [](Empty list). Also, when I press a refresh button (which executes "List<InetAddress> addresses = client.discoverHosts(17771, 5000); System.out.print(addresses);" after the Servers were created on both PCs) then I get a "[]" message again. No Hosts found... Help is appreciated :) What is the expected output? What do you see instead? What version of the product are you using? On what operating system? Please provide any additional information below.
Original issue: http://code.google.com/p/kryonet/issues/detail?id=44
From [email protected] on October 27, 2013 09:14:42
Is there any way to edit the ticket? I forgot to remove the last lines.
Some news/fix/tips about that problem?
Some routers block broadcasts. Also note it only works on a LAN with the same subnet.
Also it might not work on WLAN, depending on the client-isolation-settings of the hotspot.