Forbidden on sync

Hello so i created apache webserver with nextcloud on it with my vm.
At the moment the VM is bridged on Wi-fi it has it’s own IP address on LAN. when i try to access nextcloud (http://ip_of_vm) from a physical device it works like it should.
However, if i try to sync with nextcloudcmd with a debian based device that’s where problems arises.
nextcloudcmd --user [passwd] --password [passwd] --logdebug --exclude /root/exclude-list.txt /root/test/ (http:// [ip or the webdav address]) i keep getting 403 forbidden
[ warning nextcloud.sync.networkjob ]: QNetworkReply::NetworkError(ContentOperationNotPermittedError) "Server replied \"403 Forbidden\" to \"PROPFIND http://[ip]/remote.php/dav/files/test/\"" QVariant(int, 403)
ERROR during csync_update : "An error occurred while opening a folder Error transferring http://[ip]/remote.php/dav/files/test/ - server replied: Forbidden"
which is kinda wierd since i can go onto the webserver from a physical machine and when i try to do it with curl curl -u user:pswd -X PROPFIND http://[ip] it works just fine