Home > Enterprise >  How to test React web app on mobie device
How to test React web app on mobie device

Time:09-13

I created a web application using React and TypeScript. It's working good on PC's localhost, but I need to test it with an android device too, to make sure all my components are responsive to screen size. I tried to have both my PC and android on the same WiFi, ran the app on the localhost, and then entered:

http://{IPv4_adress}:{port_number}

However, it just keeps on loading and nothing shows up, and eventually, the chrome says

"This side can't be reached"
{ip adress} took too long to respond
ERR_CONNECTION_TIMED_OUT

I'm using Windows10 and have McAfee installed, which may or may not be doing something to block the connetion from the mobile device. If anyone knows how to test the React app on mobile device, please help me.

CodePudding user response:

your network must be Private on windows10. and also make sure you are using ipv4 address.

  • Related