Open admin settings in Nextcloud and go to option “Office” ( on your left sidebar)
Then check connection is established here or not as you can see in image.( it is for local host your might be different but just check for connection is green or not?)