Tuesday 16 August 2022

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

 Problems:

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


Solution:


Follow the steps.

1.) Turn on USB Tethering & USB Debugging Mode in your mobile.
2.) Connect your mobile to your laptop through USB.
3.) Now just change the ip address (run "ipconfig" in cmd) from your backend code.

Above solution is worked for me.

Try it. It will work.

No comments:

Post a Comment