works when both ips typed