0

I'm looking for a way to show properly subnet mask.

I have tried with DhcpInfo but seems to be deprecated since API 18, so it is not a fix.

Also i have tried with:

https://stackoverflow.com/a/1221581/2535288

But gives me /::1%1%1/128 (it should be /192.168.1.2/24)

Thanks

EDIT:

getNetworkPrefixLength() returns strange subnet mask

This seems to be this problem.

Community
  • 1
  • 1
user222
  • 191
  • 2
  • 17

0 Answers0