Check if we are already connected to the server