-
Notifications
You must be signed in to change notification settings - Fork 145
Chat with mdns does not work on different devices #62
Comments
Has tested on my home WLAN, if I try to test between two different devices ubuntu-ubuntu - it works perfect However, it's not working if I try to connect between ubuntu-windows I'm not sure yet, that it could be OS related, or firewall related, but it doesn't work out of the box so far |
Probably I need to build .exe file with some specific parameters? |
Hey @JackBekket, it sounds like when you run the example on Windows, you're never able to connect to peers? Are Windows peers able to connect to each other? If it's possible for you to temporarily disable your firewall for testing, you could try to see if that's a factor. You can also add the compiled example's .exe file to the firewall whitelist instead of turning the whole thing off. |
Meanwhile, I'll try to run the examples on Windows and see what I encounter :) |
Now just have tried to open example on Windows and Linux machines Program on windows device didn't said anything, it's looks like it doesn't even try to find any peers Program on linux machine succesfully find windows peer, but it seem's it can't connect to windows machine
|
I was just able to reproduce this at home. The example when running on Windows never seems to discover other nodes. I did see that the mDNS record was published: The
This line stands out:
The peer id is from the Windows node, but the multiaddr is for the loopback interface ( This makes me suspect that on Windows, the mDNS record is getting published with the loopback address instead of the correct IP. Aha! As I was writing this up, I noticed that the example has a
Then I can find it from my Mac and connect. @JackBekket will you try setting the |
@yusefnapora It seems you were right, it helped! also, I have successfully ported mdns to an android device, and it surprisingly works well! |
Can't start a chat on a two different devices in one local network (wi-fi)
They are not see each other
first device is linux, second is windows
The text was updated successfully, but these errors were encountered: