I am working on a react project. When I run it using npm start I can see the website on my laptop's browser, but when I try to access it via my phone using my local IP i.e 192.168.0.107:3000 , it does not load. The same happened with react native project when I try to open it on my phone using Expo. It just says something went wrong and the site does not open. I am using windows 11. Could it be an issue with the firewall or is this something else?
Asked
Active
Viewed 1,258 times
1
-
Can you check your firewall configuration? – Syed Mainul Hasan May 12 '22 at 07:21
-
Possible duplicate of [this](https://stackoverflow.com/q/47412363/13690331)? – ilpianoforte May 12 '22 at 07:26
-
Does this answer your question? [How to open a create-react-app from another computer connected to the same network?](https://stackoverflow.com/questions/47412363/how-to-open-a-create-react-app-from-another-computer-connected-to-the-same-netwo) – ilpianoforte May 12 '22 at 07:26
-
@SyedMainulHasan I had added inbound firewall rules to allow connections on port 3000 but it still does not work. – zaid shaikh May 12 '22 at 07:28
-
@ebarooni I tried this as well. Did not work – zaid shaikh May 12 '22 at 07:30
1 Answers
0
I have tried all this and my VScode with react works very well:
- First I tried to select the default browser from the windows setting.
- Second I changed the following settings in the Live Server Configuration: (a) Settings: Custom Browser set to "chrome" (or a browser that you select default in windows settings) (b) Settings: Click/Tick the Local Ip
- Disable all firewalls from window settings (Domain/Public/Private)
Try all these settings and one of the above will work certainly.

Jamal Charan
- 1
- 1