reactjsreact-nativeexpo

Error in running expo react native app keeps saying something went wrong either expo app installed mobile and my laptop are connected in same network


I have used the document of react native to create a expo react native app. my Mobile and laptop are connected in same network. When i run i get error stating Something went wrong"

I have tried connecting to mobile tethering or wireless tethering. All possibles options tried. In error log it says as below,

uncaught error: java.net.socketException: failed to connect to /1XX.XXX.X.11 (port 8081) from / 1XX.XXX.X.81 (port 58572) after 10000 ms

Need to how to resolve this. I tried solutions from Ai tools and Stack over flow.

I am using java 20 , node => v18.17.1, npm=> 9.6.7

One more is i didn't get tunneling option too.


Solution

  • Try this following :

    1. Node js to 16 or 18.

    2. Java version as 11.

    3. Run expo start --port 19000.

      Try without 1st and 2nd step, directly goto step 3 and check once. if not working try all 3 option or else You will have to end up with formatting your laptop instead of wasting time.