kryonet icon indicating copy to clipboard operation
kryonet copied to clipboard

Not able to find anyone when discovering hosts

Open ghost opened this issue 12 years ago • 3 comments

From [email protected] on October 27, 2013 17:13:03

What steps will reproduce the problem?

  1. 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);
  2. Run Code on two Computers which are in the same network
  3. Both PCs are able to create, start and bind the servers (without any errors)
  4. 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

ghost avatar Nov 12 '13 16:11 ghost

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.

ghost avatar Nov 12 '13 16:11 ghost

Some news/fix/tips about that problem?

Hralien avatar Nov 27 '13 15:11 Hralien

Some routers block broadcasts. Also note it only works on a LAN with the same subnet.

NathanSweet avatar Nov 28 '13 16:11 NathanSweet

Also it might not work on WLAN, depending on the client-isolation-settings of the hotspot.

madpew avatar Nov 28 '13 17:11 madpew