mafintosh / polo

Polo is a zero configuration service discovery module written completely in Javascript.
MIT License
247 stars 20 forks source link

Detecting failure between wifi and wired device #9

Open khuongduybui opened 10 years ago

khuongduybui commented 10 years ago

I have a set-up with 2 devices connected to the same logical network on the same physical router, one via Ethernet cable, and one via Wifi. Even though both devices can ping each other, polo running on one fails to detect the other and vice versa.

willemmulder commented 9 years ago

Might have to do with the TTL. Usually, a TTL of 1 should be enough to spread the Multicast messages within the network. Yet, I have found that between wired and wireless (and sometimes even just between wireless devices) the TTL needs to be set higher (say, 5 to be sure) in order for it to work. Could you try that?

khuongduybui commented 9 years ago

I'll try that and let you know, thank you.

khuongduybui commented 9 years ago

I set it to 10 and waited a LONG time but it didn't detect.

willemmulder commented 9 years ago

That's unfortunate. Another issue might be the wifi router that doesn't support multicast very well. You might try the solutions provided here: https://github.com/mafintosh/polo/issues/19