Reputation: 2672
I tried to test my first app on my Android phone, but after scanning, I receive the following error message:
" Uncaught error: java.error.sockettimeoutexception: failed to connect to 192.xxx.x.xx (port 19000) from 192.xxx.x.xx (port 45513) after 10000ms "
I already tried to open the firewall settings for port 19000, but that does not seem to be the problem, because it is not fixing my problem. I also closed the virtual network from virtualbox.
Can someone help me?
Upvotes: 7
Views: 8402
Reputation: 887
To solve this problem try:
ipconfig
. You should see a list of your networks. Your network ip address (highlighted in picture) should match the one that expo showing on start up (highlighted in picture).
If these ip addresses don't match together then try disabling all other networks form Control Panel > Network and Internet > Network Connections, or you could try setting REACT_NATIVE_PACKAGER_HOSTNAME={your_ipv4_ip_address}
. your_ipv4_ip_address
in my case is 192.168.1.33
(picture)An alternative solution that is much slower is choosing tunnel connection.
Upvotes: 0
Reputation: 61
I solved my own problem: Just i disconnect my pc and my mobile of internet. And after that my app was lanched in my device, then i reconnect them with the same internet to test my app.
Upvotes: 1
Reputation: 2672
I solved my own problem: I just needed to change my wifi settings from public to private in Windows. After changing this, it worked for me.
Upvotes: 14