You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is on Ubuntu 22.04 with node versions 16, 18 or 20.
Apparently when you start a webserver and don't explicitly provide a host, node favors binding to ipv6. Sometimes it binds to both ipv4 and ipv6 but at least today it only bound to ipv6. I have no idea how to control that behavior.
Since an internal distribution with dev-client only connects via ipv4 and also the expo-development-client URLs only contain an ipv4, this is very difficult to work with.
So a simple solution could be to explicitly set the host config somewhere here, I believe:
You can probably use any expo repo really.
This also happens with a fresh expo project with only running npx create-expo-app followed by npm install expo-dev-client.
The text was updated successfully, but these errors were encountered:
Summary
This is on Ubuntu 22.04 with node versions 16, 18 or 20.
Apparently when you start a webserver and don't explicitly provide a host, node favors binding to ipv6. Sometimes it binds to both ipv4 and ipv6 but at least today it only bound to ipv6. I have no idea how to control that behavior.
Since an internal distribution with dev-client only connects via ipv4 and also the expo-development-client URLs only contain an ipv4, this is very difficult to work with.
So a simple solution could be to explicitly set the host config somewhere here, I believe:
expo/packages/@expo/cli/src/start/server/metro/instantiateMetro.ts
Line 233 in 9641a75
I just added host: "0.0.0.0" after the watch: config and it consistently bound to ipv4.
What platform(s) does this occur on?
No response
SDK Version
51
Environment
expo-env-info 1.2.0 environment info:
System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 3.6.1 - ~/.nvm/versions/node/v16.14.0/bin/yarn
npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
IDEs:
Android Studio: AI-222.4459.24.2221.10121639
npmPackages:
@expo/webpack-config: ^19.0.1 => 19.0.1
expo: ~51.0.5 => 51.0.8
expo-router: ~3.5.12 => 3.5.14
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
react-native-web: ~0.19.6 => 0.19.11
npmGlobalPackages:
eas-cli: 9.0.5
Expo Workflow: managed
Minimal reproducible example
https://github.com/expo/examples
You can probably use any expo repo really.
This also happens with a fresh expo project with only running npx create-expo-app followed by npm install expo-dev-client.
The text was updated successfully, but these errors were encountered: