Repro steps:
- Run metro bundler via
expo start
- Build app (either via
expo build:android
orexpo build:ios
) - Try to update app via Expo Go
Step 3 fails with the error message:
Could not connect to development server:
Ensure the following:
- Node server is running and available on the same network
URL: http://10.0.0.41:80
For some reason it’s trying to ping port 80 instead of 19000/19001?
The only fix that works for me is to:
- Restart metro bundler
- Restart Expo Go on device
Output from expo diagnostics
:
Expo CLI 3.28.2 environment info:
System:
OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.0.1 - ~/.nvm/versions/node/v15.0.1/bin/node
Yarn: 1.22.5 - /usr/bin/yarn
npm: 7.0.3 - ~/.nvm/versions/node/v15.0.1/bin/npm
npmPackages:
@expo/webpack-config: ~0.12.45 => 0.12.53
expo: ^40.0.0 => 40.0.0
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
npmGlobalPackages:
expo-cli: 3.28.2
Expo Workflow: managed