Manage server connection