Having both VPN and local access to vaultwarden at the same time

I’ve been trying to setup a subdomain for vaultwarden that is available locally and also through tailscale VPN. I’ve made a DNS records on CloudFlare that points to the internal IP as per the vaultwarden guide (linked below) and it now works. However the IP address is different when I’m connected to tailscale. How can I get both local access at home and VPN access while I’m away simultaneously? Thanks