fix check for nat while getting external ip on autoconf function

Was not detecting that the client was behind a NAT while creating the configuration file, after that the ip updated on no-ip is the private ip.