Access app only over VPN

My expo app is running on an ec2 instance that can be accessed only under a vpn connection. Is it possible to open the app on my device only if it is connected as well?

exp start --tunnel will let anyone with the URL access the app on their phone.

npm start doesn’t appear to work even when my phone is vpn-connected.

I am using OpenVPN.

@palisand you can use exp start --lan and route that over your VPN

@palisand you can find some solutions here