With pinggy.io you can share your Nextcloud server from localhost with just a single command. Replace the port 80 with the port where your server is running.
Pinggy will give you a URL like https://ranlkfsbjkxry.a.pinggy.online
. Use this URL to access the server.