Bound the maximum number of hosts that will be tested during connectivity test, rather than testing *all* hosts. This avoids that the connectivity test will take VERY long to fail when the Internet connection is actually NOT working.
Disable Auto-Update, by default, when running in "portable" mode.
Fixed a missing line-break.
Refactored host connectivity check into a separate function. Also decrease the number of remaining connection attempts *only* if the connection failed.