-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to open Server with WiFi without Internet and cellular enabled (android) #103
Comments
Hi @RobinSchuler , yes, it is the same stuff as #21. The problem is clear — if you set Lines 42 to 64 in 038d9fd
you see, it just cycles through all network interfaces, until the first one which is associated with a valid IPv4 address, and tries to use that address for the server. Apparently it does not result in the correct local IP in the situation you describe. On my end, I don't know exactly how to correctly select the network interface among available ones; and I still have no motivation to spend my time on figuring it out and implementing it correctly. So, if you want to spend you time on making it work better — PRs are welcome! Yeah, on the high level my thoughts regarding it were that there might be different needs to select the exact interface (like select local WIFI address, or select the mobile, or whatever makes sense). So I thought to deprecate |
Thanks for the fast reply @birdofpreyru, My first thought was also something like a "preferred Network" prop (or alternative a exclude network), where the code snippet you posted would be altered to look for a match with the given name. |
@birdofpreyru |
Somewhat related to #21
How to reproduce:
=> Server crashes
I´m currently investigating if I can get a hold of the ip + port to use in that network but wanted to get in touch with you anyway.
If I turn off cellular, still use the wifi ( without internet connection ) and do not specify port + host static server will retrieve the correct ip + port, open the server and other devices within the network can access the server.
Would you be able to handle the case cellular + no internet WiFi on your side ?
Greetings
The text was updated successfully, but these errors were encountered: