correct config for connecting to server