auto select the config port