I've got virtual box installed. And when I look at the host > LAN > ip address is exp://192.168.56.1:19000.
How can I change it without disable the network? because it's my virtualbox ip and my device can't connect to it.
Thanks
You can specify the REACT_NATIVE_PACKAGER_HOSTNAME
environment variable to use the correct IP address.
If you're using XDE, then make sure to launch it from your project directory with xde .
after you've installed the command line tools.
In windows you can use:
set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.59
set
is only used for one session. If you always wanna use the same ip after reboot you can use:
setx /M REACT_NATIVE_PACKAGER_HOSTNAME 192.168.1.59
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With