Only auto-connect if configured port is available at server startup. Also bugfixes.