compute all valid IP addresses