Bugfix: better IPv4 autodetection on some IPv6 enabled servers