App is using 172.16.123.1 as the IP address, which isn't on the network I'm connected to.
See original GitHub issueDescription
When I run yarn start
Expo starts running my app on 172.16.123.1:19001, which isn’t the IP I’m using on the only network I’m connected to. Because of this I can’t connect with my device.
Expected Behaviour
I ran yarn start
and was expecting it to start my app on my local machine, listening on the my network interface so I can connect from my phone.
Observed Behavior
It started on 172.16.123.1:19001 which isn’t the IP of my machine on the only network I’m connected to.
My IP address is 172.46.0.206 and I’m not connected to any VPN, nor do I have Docker or any virtualisation software running that may create a dummy network adapter.
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── react-native-scripts@0.0.31
npm ls react-native
:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── react-native@0.44.3
npm ls expo
:
grimoire@0.1.0 /Users/harry/dev/haegin/grimoire/grimoire
└── expo@17.0.0
node -v
: v8.1.0npm -v
:5.0.3yarn --version
: 0.19.1watchman version
:4.7.0
Also specify:
-
Operating system:
-
Phone/emulator/simulator & version: OnePlus 3 but I can’t connect it because of this bug.
Reproducible Demo
create-react-native-app grimoire
cd grimoire
yarn start
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
Or this one, which uses env variables
Take a look at this solution, may be helpful: https://github.com/react-community/create-react-native-app/issues/60#issuecomment-317104728