You need to have a static VPN's IP, which is 99.9% time not a problem if you are using paid service to store your data. In some cases you won't have a static IP (ex: if you are using a personal server), to resolve this problem you will need to set-up a DDNS. I let you do your own research on how works DDNS. Some DDNS services are free (for your use case I guess), and it's fairly easy to configure. When you will be using the DDNS to communicate with your server don't forget that the data that your are transmitting is not encrypted. Like if you connecting directly to a remote SSH, FTP ... It's not a big deal, but don't forget it. If you want to encrypt your data you will have to add aanother layer: a VPN. I let you do your own research about VPN. If you have questions feel free to ask.
Awesome video
Great. Is this possible to do with VS2022?
How do we point the domain name to private ip with vpn
You need to have a static VPN's IP, which is 99.9% time not a problem if you are using paid service to store your data. In some cases you won't have a static IP (ex: if you are using a personal server), to resolve this problem you will need to set-up a DDNS. I let you do your own research on how works DDNS.
Some DDNS services are free (for your use case I guess), and it's fairly easy to configure.
When you will be using the DDNS to communicate with your server don't forget that the data that your are transmitting is not encrypted. Like if you connecting directly to a remote SSH, FTP ... It's not a big deal, but don't forget it. If you want to encrypt your data you will have to add aanother layer: a VPN. I let you do your own research about VPN.
If you have questions feel free to ask.