Add localIPs utility function