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
Even after you set the custom ip, you still cannot connect the virtual box.
You need to set a port forward for the virtual mechine at networking setting page.
Just use the real host mechine ip for the app Expo.
REACT_NATIVE_PACKAGER_HOSTNAME='real host mechine ip' npm start
check your pc whether install virtualbox , disable VirtualBox Host-Only Network
go to win pc: Control Panel\Network and Internet\Network Connections
run again command expo start is ok
Open CMD from your Project Directory and Run Command as set REACT_NATIVE_PACKAGER_HOSTNAME=192.168.0.12. Replace the ip with your own LAN ip address.
The Command set is used to set the Environment variable locally, without defining it into Environment Variables.
I have similar kind of problem (with may a slight difference), but the solution doesn't work for me. Finally I tried Expo CLI tool which worked great for me and is also recommended by Expo team.
My detailed question (may help someone to resolve similar problem):
Expo LAN configuration doesn't work for New ReactNative Project
On the Windows Subsystem for Linux (Ubuntu 18.04.1 LTS "Bionic"), I had to use the export command:
export REACT_NATIVE_PACKAGER_HOSTNAME=192.168.1.76.
If you have "ubuntu in windows" configured you can automate the process and run:
for /F "usebackq delims=" %A in (`ipconfig ^| grep -A4 'Wireless LAN adapter WiFi' ^| tail -1 ^| awk '{print $NF}'`) do set REACT_NATIVE_PACKAGER_HOSTNAME=%A
My problem solved by reinstall expo client on ios simulator.
I was used expo v37 before but got this problem on v38, the problem was expo client not have expo sdk 38.
Sharing my experience using EXPO with Cloud 9 and AWS Amplify. Similar with you, the QR code gives exp://localhost:19000
As the Security Group has been configured to provide public access, I regenerate the QR code to have it accessible from public IP address of exp://X.X.X.X:19000, this can be scanned from IOS devices to EXPO.
REACT_NATIVE_PACKAGER_HOSTNAME environment variable is ment for react DevTools.
For EXPO, you have to set EXPO_DEVTOOLS_LISTEN_ADDRESS environment variable.
Here is the weird function that determines the hostname :
function devtoolsGraphQLHost() {
if (process.env.EXPO_DEVTOOLS_LISTEN_ADDRESS && process.env.REACT_NATIVE_PACKAGER_HOSTNAME) {
return process.env.REACT_NATIVE_PACKAGER_HOSTNAME.trim();
}
else if (process.env.EXPO_DEVTOOLS_LISTEN_ADDRESS) {
return process.env.EXPO_DEVTOOLS_LISTEN_ADDRESS;
}
return 'localhost';
}
If you're still having this problem, try switching to tunnel connection. It'll install #expo/ngrok# and then you can scan the qRcode. Its what I did and the connection worked without having to change the IP address
click 'npm start', open the browser where your application is running, and on the bottom left corner, you will find the QR code.
Above the QR code, three options are displayed saying 'Connection: Tunnel | LAN | Local' which is defaulted to 'LAN'. Just change it to 'Local'.
Your application will be up and running.
For me, something completely different worked under Windows.
My pc has multiple network interfaces and the LAN URL points to a different one than that the mobile device can connect to.
This was quickly solved by deactivating all unnecessary network adapters.
(Setting the REACT_NATIVE_PACKAGER_HOSTNAME environment variable did not work for me.)
And of course I was on the private network and had disabled the firewall for it until I configured it.
Alternatively, to avoid having to deactivate a network adapter, you can also adjust the metrics or priority of the adapters like this:
goto Control Panel > Network and Internet > Network Connections
right click the desired connection (Higher Priority Connection)
click Properties > Internet Protocol Version 4
click Properties > Advanced
Uncheck 'Automatic Metric
enter 10 in 'Interface Metric
Click OK
I have a webserver running in an VM (VirtualBox, configured with vagrant) which is assigned the private ip 10.0.0.20. I can reach the webserver with Google Chrome, but not with Microsoft Edge. I have activated Allow Localhost Loopback in about:flags.
Does anybody what could be the problem?
Not sure about the root cause of the problem, but here are some options to work around this:
Configure VM Networking to be Bridged rather than NAT;
Use a proxy, e.g. Fiddler;
Port forward, using netsh, ssh or other utilities.
For option 2 and 3, see this answer for details.
I have the same problem and can't find a workaroud -- even after 2 years. I guess the final answer is: Stop using Edge.
Looks like Microsoft is dumping it: [https://arstechnica.com/gadgets/2018/12/post-mortem-tying-edge-to-windows-10-was-a-fatal-error/]
Go to the start menu and type "Internet Options" Select internet options and open he security tab click on Local Intranet then press the sites button.
Control Panel > Internet Options > Security > Local Intranet > Sites
Uncheck "include all local (intranet) sites not listed in other zones" and "Include all sites that bypass the proxy server".
Restart Edge and try again.
If your machine with the webserver has internet access you could use a tool like ngrok to create a tunnel with a public URL to your machine.
http://www.sitepoint.com/use-ngrok-test-local-site/
I'm running the latest win 10 V 1809 build 17763.253.
I have checked several threads that don't show any solution, but I found one thread with a workaround by adding the local IP range to the trusted sites, it works for me.
Second workaround is using the server name instead of the IP address.
Example: http://Computer-name/ which gets resolved to IP version 6 address.
Since this is bug only happens with MS EDGE and works fine with all other browsers, where is the official MS solution ?
enter image description here
I am attempting to create a new virtual machine in Bluemix. I got the email lettng me know that the service has been enabled, but then I try to create the new virtual machine instance, I get an error about a missing network name. The network name dialog on the previous screen of the wizard had no values, so I could not select one.
Do I need to do something to create the network as a pre-requisite to creating the virtual machine?
This issue should now be resolved. There were some issues with keystone but things should be fixed now. Please let us know if you are still having issues.
When I try to start Worklight server in Worklight 6.2 on mac OS. I keep getting:
Several ports (10080, 10443) required by Worklight Development Server are already in use
When I change the port to a different number in the server config, I just get the same error (with the new port).
How I can resolve this?
Run Activity Monitor and search for "java" process. Kill it.
Try TCPView software and delete the port number as you mentioned in the above.Then clean project and Run the server.
Hope this helps.
Try this out:
Finder -> Go -> Go to folder. Type in the following location /etc
Search for a file named hosts. Copy it to your desktop.
Check for a line containing localhost and remove that line, and add a new line as follows: (If no such line is present, no problem add a new line)
127.0.0.1 localhost
Save the file and replace the file in /etc.
Close eclipse and now start the server.
Note: Try this only if using lsof command or killing the java process didn't solve your problem.
I am trying to run a simple HelloWorld app on my MacBook using Eclipse Luna and I am getting this message:
The current server configuration is set to "localhost". Therefore the
Worklight build uses the primary IP address of this computer
(???.???.?.???) instead. It is recommended to set the server
configuration to use the fully qualified hostname or IP address of
this computer. To configure the setting, in the "Servers" view
double-click the Worklight Development Server entry and edit the "Host
name" field.
Clicking the Worklight Development Server opens a sub menu with different files. I believe that I need to replace localhost by my IP address. Which file and which entry need to be modified?
It is only a recommendation and typically in most cases for local development there is no need to change this value.
If you still prefer to change it, it is where the message says so.
Open the Servers view and double-click on the "Worklight Development Server" entry (no need to expend it):
I just solved the same problem. I had to change the Host Name to the name of my PC and it worked.
#Simon, Can you do a DNS flush on your mac once and give it a try. Sometimes DNS flush causes some sort of unwanted issues which doesnt resolve the ip address and acts funny
refer :- link