-
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
Virtualbox related issue - multiple networks #60
Comments
I think this is probably a bug. What OS are you using? I suspect that our detection for "default network device" is not producing the correct result here. We currently use https://www.npmjs.com/package/ip to detect IP addresses, but it might be worth trying with https://www.npmjs.com/package/address or another package. cc @jesseruder, relevant xdl line: https://github.com/exponent/xdl/blob/43f29f10ea1641a5ab1808af93bedb8ee683a6b8/src/UrlUtils.js#L148 |
my system is Windows 10 Home Edition. |
This issue has been open for a while indutny/node-ip#21. I'm going to see if I can repro this and will check if the address package works better in this scenario. |
Can you tell me what the output of this command is in a node REPL when running virtualbox on this machine?
|
I got below error when running your command:
However, if i just run the first part of your command:
I got below results:
|
@xingjianpan I was having the same problem. Assigning This link shows how: https://answers.microsoft.com/en-us/windows/forum/windows_10-networking/adapter-priority-setting-unavailable-in-windows-10/d2b63caa-e77c-4b46-88b5-eeeaee00c306 Hope this helps |
Hi guys, I think the proper way to address this issue is simply to be able to specify IP and port at launch (options, environment variables). Here is the problem that I have related to this open issue:
=> The only way to address this and ALL the other possible networking configurations is to be able to setup the IP+Port at the application level (Expo) Cheers, |
adapter ordering is a work around, a solution would be to be able to configure. |
The following steps will definitely help. I had the same problem and was able to solve it in my Windows 10 OS. I had Virtual Box installed on my computer and I was not able to run CRNA in my android expo client. So,
|
I had a similar issue as @Himujjal . I had VMWare installed. Going to network connections and deactivating all of them solved the problem. |
I couldn't get the above items to work. Although my problem is running Hyper-V. I just disabled the Ethernet connection for Hyper-V while running react-native. |
If you set env var REACT_NATIVE_PACKAGER_HOSTNAME to desired IP, then it will use that address. More info here https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md#configuring-packager-ip-address |
For info, other tools like Ionic let you choose which network interface to serve from. For windows, running |
Hey all and thxn @smiled0g i think this comment should be added in docs many of us using windows and we have problem |
@webprofusion-chrisc Additionally, doing a Are there any additional settings that need to be changed? EDIT |
@Bryze actually I haven't seen 'setx' before, you learn something new every day. The conventional way is to go to Control Panel\System and Security\System > Advanced system settings, then Environment Variables, you can then set the variable at the user or system level. You then need to close and reopen the command window you're working in (or any other dependant processes which spawned before you changed it). |
@webprofusion-chrisc yes indeed that's the conventional way. I had some doubts settings environment variables as all I could see in it were paths. So that confused me a little bit. However, FYI when we do |
Don't forget to open the required firewall ports too on your laptop; in my case, seems to be 19000 and 19001. |
In my case (Ubuntu) the problem was always the ports. To open them, these are the commands:
|
Had the same issue. Re-installing the Expo app on my device, and restarting (clear cache) the packager did it. Relieved! |
I had the same problem, then I realized my WIFI automatically connected to my neighbours. Your PC and phone should be on the same network. |
It's not working for me can you help me out @Himujjal please I'm struggling with this issue since last week. |
I tried the same thing and it worked for me |
Hi,
I have virtual box installed on my system and there are multiple networks available in additional to my WIFI network (i.e VirtualBox Host-Only Network, VirtualBox Host-Only Network #2, VirtualBox Host-Only Network #3 , etc..).
After running the command yarn start, i got below messsage:
Initially i was not able to connect to this address using Expo App. After quite some time investigating this issue, i noticed it's because 192.168.56.12 belongs to one of the network created by VirtualBox.
After disabling all the networks created by Virtual Box, I am able to connect Expo with my project.
and the message become this. Note 192.168.1.12 belongs to my WIFI network which my phone can connect.
So, is this a bug? or is there a place where i can set which network to use?
The text was updated successfully, but these errors were encountered: