I want to retrieve the current working IP, for that i saw the answer in https://stackoverflow.com/a/13837054/5385494, the probleme is that it returns 4 different local IPV4: 3 have 169.254.X.X and one 192.168.1.2 the latter is the one I am looking for.
How to get only the current working local IPV4 (the one the dhcp of the modem attribute me) regardless of the configuration of the subnet in the modem?