how to access to reactjs in local network

35 Views Asked by At

I'm running a reactjs in linux and I'm trying to access it from another device in the same network ,I saw these questions q1,q2,q3 but didn't help , I turned off firewall , I run "npm start --host 0.0.0.0" didn't work either,I try it from my phone, it always ends by "ERR_CONNECTION_TIMED_OUT", I created app by create-app-react and I run it by npm start.

1

There are 1 best solutions below

0
the_yaz2000 On

the solution was to run :

sudo ufw allow 3000

(change 3000 by your port )