compare ipv4 and ipv6 input loaded from an external file