Hi @yoadmatza
What do you men by “on my ubuntu machine”. Is that your desktop pc, which you also use for other stuff? If yes it is probably not a good idea to host a publicly available server on this machine.
The first of this two guides is a how-to for a manual installation of Nextcloud and none of the things mentioned there are needed if you use the snap package. The second one looks fine and should work in principle
Maybe we can figure this part out, when you are telling us what you already have tried…
Basically, the following things must be fulfilled for it to work:
-
Your internet connection needs a public IP address (no CGNAT)
-
Your dyndns name must point to your current public IP address
-
Ports 80 and 443 must be forwarded to the local IP address of the computer running Nextcloud in your router.
There are other methods like a VPN or SD-WAN solutions like Tailscale, Zerotier etc… But they are not necessarily easier to setup.