use ipv4 address if possible