Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
86-umang opened this issue Mar 29, 2021 · 7 comments

Comments

@86-umang
Copy link

86-umang commented Mar 29, 2021

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

@William-2020-03-03
Copy link

I met the same issue. But I have no idea. I also want a solution.

@86-umang
Copy link
Author

I met the same issue. But I have no idea. I also want a solution.

I solved it.

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.

let me know if some error occur and also Write a comment if the solution works.

@momnaimran
Copy link

I met the same issue. But I have no idea. I also want a solution.

I solved it.

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.

let me know if some error occur and also Write a comment if the solution works.

omg this finally worked for me. I have been trying for 2 days and i was so freakin frustrated. Thank you so much for the solution

@86-umang
Copy link
Author

I met the same issue. But I have no idea. I also want a solution.

I solved it.
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.
let me know if some error occur and also Write a comment if the solution works.

omg this finally worked for me. I have been trying for 2 days and i was so freakin frustrated. Thank you so much for the solution

You are welcome!
I wasted one week on this solution.

@EvanBacon
Copy link
Contributor

This seems to be more closely related to the Metro bundler and react-native runtime, not to the bootstrapping script (this repo). https://github.com/react-native-community/cli

@JuanPh02
Copy link

Thank you so match!

@0303vikas
Copy link

I just needed to change my wifi settings from public to private in Windows. After changing this, it worked for me.

@expo expo locked as resolved and limited conversation to collaborators Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants