Uncaught Error: java.net.SocketTimeoutException: failed to connect to /192.168.0.102 (port 19000) from / 192.168.0.100 (port 42950) after 10000ms

Viewed 2443

My react native project run on android emulator but whenever i try to connect my project with my android device then above error occur.

note: my mobile and laptop are connected with the same wifi connection. Please help me with this issue.

Uncaught Error: java.net.SocketTimeoutException: failed to connect to /192.168.0.102 (port 19000) from / 192.168.0.100 (port 42950) after 10000ms

3 Answers
  • While running expo I got this error.
  • Turn on USB Tethering & USB Debugging Mode in your mobile. enabled tethering enter image description here
  • Connect your mobile to your laptop through USB.
  • Running app in expo app. enter image description here
  • close the terminal and reopen.
  • if didn't work let me know. for more info click me

If you are using Expo Go, You can this problem in 2 ways.

First way.

Remove Expo Go cache and try to restart the app.

Second way

If you are using wifi turn off wifi and try to connect your desktop and mobile with mobile hotspot

Please go through your Wifi Properties from your laptop and change the settings from Public to Private. It worked for me!!!

Related