If you receive the error ‘Unable to connect to server’ while saving server settings, and you are sure that the credentials are correct, please ensure that you don’t have a security plugin or server firewall blocking API requests to/from the server.
Alternatively, you could enter the credentials manually as described here.