Kishan Sheth
Kishan Sheth

Reputation: 38

How can i open React App on local network?

I created an app using the Create React App. When I start the server using Npm start it shows

You can now view the player in the browser.

Local: http://localhost:3000
On Your Network: http://192.168.0.104:3000

When i access this on my network which is on my android device(chrome for android) it shows ERR_ADDRESS_UNREACABLE.

I cannot access the app from my network, from any device. I am using Windows 10 for the development. I have also tried turning firewall and antivirus off.

Upvotes: 2

Views: 9715

Answers (2)

Robert Kegel
Robert Kegel

Reputation: 191

I recently had this issue after switching to a new laptop (Windows 11). My issue was that my home network was flagged as a public network, and when I switched it to a private network my laptop was now discoverable and my react apps and other services were again available on my other LAN devices.

Upvotes: 0

GMKHussain
GMKHussain

Reputation: 4681

  1. Open CMD and type ipconfig
  2. Note your public IP
  3. Openmobile web browser and open IP address with Port number. i.e: 192.159.0.132:3000/app_route

OR try ngrok

Upvotes: 2

Related Questions