Access app only over VPN

#1

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.

#2

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

#3

@palisand you can find some solutions here