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

Discovery fix #25

Closed ghost closed 10 years ago

ghost commented 10 years ago

From olamedia on August 17, 2012 21:55:57

Currently discovery is not working if routing is not tuned manually. (Network is Unreachable exception)

Please implement loop over all available network interfaces to get proper broadcast addresses:

http://michieldemey.be/blog/network-discovery-using-udp-broadcast/

Original issue: http://code.google.com/p/kryonet/issues/detail?id=24

ghost commented 10 years ago

From ronaldop...@gmail.com on September 24, 2012 15:11:58

I confirm that network discovery is not working properly. Trying to execute on two Android devices connected via WiFi Direct. Getting the same error, Network is unreachable exception.

olamedia, the application I'm developing will always use the same route (WiFi Direct), is it possible for you to point me on how to "tune manually" to make it work?

ghost commented 10 years ago

From olamedia on September 24, 2012 19:53:13

don't know anything about Android... My bug is living at Ubuntu. Also I didn't tried to fix network configuration. Instead i did own discovery thread class almost like in article.

ghost commented 10 years ago

From olamedia on September 24, 2012 19:54:12

ghost commented 10 years ago

From nathan.s...@gmail.com on February 06, 2013 10:43:27

I believe it tries all interfaces now. Let me know, will reopen if not.

Status: Fixed