Working with VPN and React Native (expo) on Android/iOS

Tiempo de lectura: < 1 minuto

Reading time: < 1 minute

I’m going to show you how to test applications directly on your Android/iOS device with an active VPN.

When trying to run the application from localhost to a mobile device with an active VPN, it won’t find the address to execute.

npx expo start --dev-client
expo run

To make it work on a remote device with VPN, we need to initialize it by adding the –tunnel flag.

npx expo start --dev-client --tunnel
expo run --tunnel

Leave a Comment