Besides what the other commenter mentioned, there’s also existing services you can use instead of doing it all yourself and having to keep track of another VPS/Server
https://www.noip.com/remote-access
Especially if all you want to do is access your own server from outside your local off-grid network, then the free tier of the above service is probably perfect. Paid tiers give you a bit more features and can use your own TLD; Oracle also offers something similar that is paid.
They all wish they were as clever, funny, and efficient as GLaDOS