Closed shunf4 closed 1 year ago
Thanks for your report, I will check it. @shunf4
Android client seems successful finding the desktop PC's server now, but after I tap on the server entry, the connection doesn't succeed, with a toast saying only "Error".
Android client seems successful finding the desktop PC's server now, but after I tap on the server entry, the connection doesn't succeed, with a toast saying only "Error".
I also met this problem on low quality network. I am using UDP broadcast + UDP server now, maybe I should use UDP broadcast + TCP server.
Never mind, it's Windows Firewall. Applied proper settings to the firewall and everything worked. Thanks!
https://github.com/Tans5/tFileTransfer_desktop/blob/a1def7fb248ff6c661d7a86ffd222659bca8e21a/net/src/main/java/com/tans/tfiletransporter/netty/AddressUtils.kt#L10-L19
This possibly retrieves a wrong broadcast address (unmatches the selected IP) when the network interface is configured with multiple IP addresses. Then because the broadcast packet is sent to an incorrect destination, the other device is unable to discover current device.
For example, my configuration is as below and that's what happened: