The approach most people use is to tunnel into the server. You install a daemon on your computer which establishes a tunnel to log-into from outside your network. Cloudflare and Tailscale have solutions for this that are very popular among the self-hosted crowd.
https://developers.cloudflare.com/cloudflare-one/application...
https://tailscale.com/kb/1151/what-is-tailscale