-
Notifications
You must be signed in to change notification settings - Fork 392
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
Subnet is returned as 255.255.255.255 instead of 255.255.255.0 #633
Comments
Same issue with 9.3.5, react-native 0.68.4. |
Very odd - haven't seen this before - next step will be do instrument the java code where we pull the info from the device and see what the system APIs are returning, then dig in from there. Curious for results 🤔 |
I added some debug code:
This gives:
I guess your code doesn't like IPv6? |
It's open source, it's your code 😆 If there's something that needs to change I'm open to any+all reasonable PRs This module existed long before I had heard of react-native, and it'll be here long after I've stopped hitting the "merge" button, I imagine you are correct and it's just IPv4-only at the moment, or incorrectly-IPv6 |
You win the internet points for the day for nailing this with what appears to be a squeaky clean PR. Chapeau |
🎉 This issue has been resolved in version 9.3.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Environment
Platforms
Android 11
Versions
Description
On my Android 11 device (Fairphone 3+) running
NetInfo.fetch
gives correct information, aside fromsubnet
:The correct network information would be
10.0.0.133/24
, i.e. a subnet of255.255.255.0
. On my desktop machine (in the same network) I seeWhen checking the network details manully (long-pressing on the Wifi icon) I also get a subnet mask of
255.255.255.0
.The text was updated successfully, but these errors were encountered: