-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App is using 172.16.123.1 as the IP address, which isn't on the network I'm connected to. #264
Comments
hello! we use node-ip |
In my case the problem is that I'm running vagrant on VirtualBox which is creating two additional Ethernet adapters which are listed before physical Wireless adapter and so picked by the start script. I think this can be fixed either by
To be precise, IP picked by start script is
|
Why not rather than specify an IP address in the env variables, specify a network interface (or MAC address or other identifier)? I have the common situation that when I take my laptop to different locations, I have to constantly reconfigure this IP address for my local wifi. |
As expo recommends using Genymotion for emulation which is running on VirtualBox, this issue will probably come up more often |
if you're having a trouble with this please consider sending a PR to help us improve it. I personally have never encountered this issue and cannot empathize well with it because I can't even re-create it. alternatively, you can use |
I have the same issue here. The awkward (mine is 192.168.56.1:19000) is the first virtual network that I have to use with my Vagrant. I also don't know how to rearrange it. |
Same issue here.... It's true that my network config is a bit tricky ... Thanks beforhand.
Windows IP Configuration Ethernet adapter Local Area Connection 8: |
@brentvatne Can you please explain a bit the 'ngrok' based solution? |
Take a look at this solution, may be helpful: #60 (comment) |
Or this one, which uses env variables |
@MrLuje's suggestion works perfectly. Thanks. |
On my machine Expo also picks a 172.x.x.x IP address (from my Hyper-V Virtual Ethernet Adapter) instead of my preferred 192.x.x.x IP address. Thus the generated QR links to an unreachable IP. I was able to to override the IP address being used with:
|
Description
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
:npm ls react-native
:npm ls expo
:node -v
: v8.1.0npm -v
:5.0.3yarn --version
: 0.19.1watchman version
:4.7.0Also 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
The text was updated successfully, but these errors were encountered: