[networking] How to get a list of all valid IP addresses in a local network?