R2 with wordpress

I was using wordpress leopard offload with R2 and it was working fine, but after switching to a new server I have not been able to connect to my storage bucket, and after switching to another plugin, media cloud, I tested it with the following message: VALIDATE STORAGE SETTINGS.
There was an error or errors trying to connect to the storage provider.
I have also opened the server side TCP: 20,21,22,25,26,53,80,110,143,443,465,587,993,995,3000:3200,6543,30000:50000.
What should I do?
Please help, thanks!