Автономное приложение Expo не работает с включенным VPN (VPN на устройстве Android). «Невозможно подключиться к серверу ⇐ Android
Автономное приложение Expo не работает с включенным VPN (VPN на устройстве Android). «Невозможно подключиться к серверу
I'm developing react native app with expo and I have the development build on android device works well but when I turn on VPN on the android device the app get disconnected to the metro , I need to keep app connected along with VPN turned on but how to do that ?
update
the result I get when try to start my app while vpn is on (on android device ) :
immediately i get error loading app ,connection reset, and i connot connect to the server at all
and when I turn vpn on after my app get connected to server in console
Cannot connect to the Metro. Try the following to fix the issue:
Ensure that the Metro server is running and available on the same network Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices
If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081
URL: 192.168.1.4:8081
the last one is my case :device is on the same Wi-Fi network
what I tried
after app loaded 'with vpn off' because (app not loading when vpn on ) shake device and go to setting > debugging > set machine's IP address and the port of the local dev server then reload app but no changes.
Environment :
Expo managed workflow sdk 50
OS: Windows 10
standalone app
I have a full internet access and the vpn on android is psiphon
Steps to Reproduce:
npx expo start --dev-client
Источник: https://stackoverflow.com/questions/781 ... oid-device
I'm developing react native app with expo and I have the development build on android device works well but when I turn on VPN on the android device the app get disconnected to the metro , I need to keep app connected along with VPN turned on but how to do that ?
update
the result I get when try to start my app while vpn is on (on android device ) :
immediately i get error loading app ,connection reset, and i connot connect to the server at all
and when I turn vpn on after my app get connected to server in console
Cannot connect to the Metro. Try the following to fix the issue:
Ensure that the Metro server is running and available on the same network Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices
If you're on a physical device connected to the same machine, run 'adb reverse tcp:8081 tcp:8081' to forward requests from your device If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081
URL: 192.168.1.4:8081
the last one is my case :device is on the same Wi-Fi network
what I tried
after app loaded 'with vpn off' because (app not loading when vpn on ) shake device and go to setting > debugging > set machine's IP address and the port of the local dev server then reload app but no changes.
Environment :
Expo managed workflow sdk 50
OS: Windows 10
standalone app
I have a full internet access and the vpn on android is psiphon
Steps to Reproduce:
npx expo start --dev-client
Источник: https://stackoverflow.com/questions/781 ... oid-device
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение