Re-added max connection attempts option
Added an option to force fallback socket use (speeds-up connection time on some devices)