I need to keep track if the device's network IP environment has changed.
I looked at Swift - Get device's WIFI IP Address
I do not necessarily want WiFi IP address only, but any network IP that it is able to communicate (including cellular).
However, there is a corner case: when the internal (non externally routable) addresses like 192.168.x.x become duplicates, but in different subnets.
To make it clear, home network of house A gives me 192.168.1.10; when I join another home network say House B, the home net of house B could also assign me 192.168.1.10.
In this case, how would I track that the environment changed with same IP address?