fix check for nat while getting external ip on autoconf function