My React native app is not running on physical device - react-native

enter image description here
My React native app is not running on a physical device.it's showing some Gradle error.
I check many articles but cant finds any soulation.
please help on out from this error.

You can also connect to the development server over Wi-Fi. You'll first need to install the app on your device using a USB cable, but once that has been done you can debug wirelessly by following these instructions. You'll need your development machine's current IP address before proceeding.
Open the command prompt and type ipconfig to find your machine's IP address (more info).
Make sure your laptop and your phone are on the same Wi-Fi network.
Open your React Native app on your device
You'll see a red screen with an error. This is OK. The following steps will fix that.
Open the in-app Developer menu.
Go to Dev Settings → Debug server host & port for device.
Type in your machine's IP address and the port of the local dev server (e.g. 10.0.1.1:8081).
Go back to the Developer menu and select Reload JS.
Please Check complete on official site as well. Other Best link

Related

How do I resolve my expo client app on Android that stop working?

How do I fix this?enter image description here
You should switch to using the tunnel connection type, it seems like you are unable to connect to other devices on your network.
This is discussed in the "Create a new app" section of the documentation: https://docs.expo.io/versions/latest/get-started/create-a-new-app/#opening-the-app-on-your-phonetablet
Is the app not loading on your device?
First, make sure that you are on the same wifi network on your computer and your device.
If it still doesn't work, it may be due to the router configuration — this is common for public networks. You can work around this by choosing the "Tunnel" connection type in Expo Dev Tools, then scanning the QR code again.
🐢 Using the "Tunnel" connection type will make app reloads
considerably slower than on "LAN" or "Local", so it's best to avoid
tunnel when possible. You may want to install a simulator/emulator to
speed up development if "Tunnel" is required for accessing your
machine from another device on your network.

React Native Wrong LAN IP Hosting Fix

Whenever I run
npm start (react-native-scripts start)
It hosts the Application on the endpoint of 192.168.1.200:19000
The issue is my Windows computer has the IP address of 192.168.0.31
Is there a way to change this React Native hosting IP address so it is hosting on the correct IP?
The application does not start etc. The only way to run this expo app and have it connect is through the tunnel (which is 70% slower when refreshing the app etc).
Side note: This bug does not happen on my mac OS computer, Only on my Windows 10 computer development machine I am trying to transfer to.
Edit: Is there a way to always have this be my computer's router assigned IP address? I'm confused why this breaks for RN on windows vs RN on mac.
Check the below question thread.
It answers your query.
React Native Expo change default LAN IP
Hope it helps.

VPN connection using Hyper-V in Windows 8

How to enable Hyper-V to connect VPN for external internet access in Windows 8?
I'm trying to run Windows phone 8 app using emulator, and while see app in emulator it doesn't connect the VPN to access internet.
Please advice.
Thanks.
MSDN has a troubleshooting page for the Windows Phone 8 emulator. Perhaps you can find related info there. Something like this might help:
Cannot connect to Internet destinations
The Windows Phone 8 Emulator uses the HTTP proxy settings from the host computer. If you can’t access Internet resources from the emulator, check with your IT administrator to make sure that your proxy settings will work with the emulator.
If your network’s proxy servers are unavailable or malfunctioning, it might be possible to restore connectivity for the emulator by disabling automatic proxy detection on the host computer. However this only works in certain network configurations.
To disable automatic proxy detection on the host computer
On the host computer, open Internet Options from the Control Panel. The Internet Properties dialog box opens.
In the Internet Properties dialog box, click the Connections tab.
On the Connections page, click the LAN settings button. The Local Area Network (LAN) Settings dialog box opens.
In the Local Area Network (LAN) Settings dialog box, deselect all the check boxes. Click OK twice to close both dialog boxes.
Restart the emulator and retry the connection.
Also this MSDN blog-post can be helpful: Why can’t the Windows Phone Emulator go online?. Useful part of the article:
As you see, clicking the “>>” on the bar parallel to the Emulator will open a small window with 4 tabs. The last tab is for “Network”. To explain in simpler terms, there are two adapters here – one is for internal use by Emulator and other is for external network connectivity. Each adapter will have an IP address (IPv4) associated with itself. The one of our interest is under Adapter #2.
I have erased out the IPv4 address that is assigned to Adapter #2 (Yellow box), but you find that the IP assigned here starts with 169.254.x.x…., then Bingo! - we have figured out the problem. How?
The IP addresses starting with 169.254.x.x …. Are usually the self-assigned default addresses to a device and not really helpful to get the device to go online. This IP should either be a static IP or the one assigned by the DHCP server (if you have one in the environment) for the device to be able to connect to external networks.
Hope this helps.

no internet on windows phone 8 emulator

I have installed windows phone 8 SDK and tried running a simple app which embeds a WebBrowser on a page. When I try to run the app in emulator the emulator does not get internet connection. It displays an error message saying "You don't have permission to modify internal Hyper-V network adapter settings required to run the emulator". Im sure my login has admin permissions. My machine is 64bit, hyper v is enabled and Hyper v manager is running, hardware virtualization is enabled in the BIOS settings, DHCP is enabled and its connected to a wired network. I have checked all the system requirements. What ever I do it keeps on giving the same error message. I setup everything in a different machine and tried running the app in that machine. The same error message is displayed in the that machine also. Can anyone tell me how to get it working.
DHCP is enabled and its connected to a wired network
Can you run ipconfig /all on your host machine and post it here please?
seems you have problem with your DHCP or maybe multiple DHCP and conflict.
You need to add your user account as a member of the "Hyper-V Administrators" group on the machine.
Detailed steps:
Hit Windows key + Q and search for "local users and groups". Change the search scope to "Settings". Click "Edit local users and groups".
Expand the "Groups" section. Right-click on "Hyper-V Administrators" and select "Add to group".
Add your user account.
Some connection tools on the host can have negative effects when used with the emulator; I found having cisco VPN client installed on the host prevented the emulator from finding the internet. Other VPN clients may have similar side-effects. I simply uninstalled cisco (the inbuilt windows VPN is fine for what I need) and it worked perfectly.
I've also seen problems where it won't find the internet after the host has been suspended / resumed. In that scenario, it turned out to be bad network drivers. I installed a dedicated Intel NIC (rather than the on-board NIC on the motherboard) - problem solved.
Basically, Hyper-V is a bit fussy.
try refreshing the hyper-v by unchecking and then checking it again,this worked for me.
Steps:
1.control panel>>programs>>Programs and features>>turn windows features on and off>>hyper-v
2.uncheck it and restart the pc.
3.again go to control panel an check hyper-v and restart the pc again.
the try to run the emulator,should work..
another possible reason is that you did not start vs2013 as admin

WCF on PocketPC, not connecting to host machine

I'm working with a PocketPC vm for development over here.
I can get the virtual device to connect to the internet, but I can't get it to connect to a web service on my local (host) machine.
I've tried the machine name and my IP address, different ports, but no luck.
Anyone else have this issue?
EDIT: I have an actual device at my machine as well. When docked I don't have this problem with the real device, just the emulated one.
I have not had the specific issue. But, the best way I've found to deal with these issues when using WCF is to enable tracing and see what the error messages are.
If you are connected via ActiveSync, you can connect to the name "ppp_peer".
This name will always resolve to the machine connected via active sync.
Figured it out when I read this article:
http://www.betterthaneveryone.com/archive/2008/08/31/getting-network-access-on-the-windows-mobile-emulator.aspx
The device has to be docked. You need to use the Device Emulator Manager to dock the device. Also note: you can only have one device docked at a given time.
Once the device is docked, you should see the Windows Mobile Device Center display. Find the running device (look for the green arrow), right-click and select Cradle. Remember, only one device can be cradled/docked at a time. If you have a real device that is cradled already, you cannot cradle an emulator.
In Windows Mobile Device Center -> Mobile Device Settings -> Connection Settings: Check "Allow connections to one of the following:" and select DMA in the dropdown.
On the emulator: File->Configure->Network. Make sure a valid network device is selected.
From the emulated OS: Start Menu -> Settings -> Connections -> Connections -> Advanced -> Select Networks. Make both drop-downs My ISP.
That should be it. To test, load Internet Explorer, browse to StackOverflow.com. Next, browse to a web page on your local machine.