Search code examples
androidreact-nativetimeoutexpo

SocketTimeOutException with Expo


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?


Solution

  • 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.