I am trying to view my react-app website on my phone . I already set my network to private network and used the ipv4 address in my browser but it’s taking time and it isn’t loading . I don’t know what I am doing wrong
I expected it to be viewable on my mobile phone
2
Answers
Use ngrok simply to run it across multiple devices
If you are using vite, just replace this in the scripts in package.json file:
with
Then run
npm run dev
you would be able to see the network link for your app to run on another device on same network