Connect to server timeout error

Hello! I am installing a nextcloud client on a Mint laptop. I have it running on my Pi4 and phone, but whenver I type in my IP address/nextcloud it does not work. I have tried no https:// and http:// and neither and none are working. What can I do?