9

After creating a new react app using create-react-app, once I start the dev server via npm start, the server started and shows this:

enter image description here

I'm sure that until last week I could open http://localhost:3000 to see the new created app in browser, but now it doesn't work any more and shows this:

enter image description here

But, it works if I open http://192.168.119:3000

I haven't changed anything inside my .hosts file.

Does any one know why I cannot use http://localhost:3000 any more?

3
  • Yes, as I mentioned nothing is changed inside the .hosts file. Commented May 1, 2019 at 5:16
  • 3
    Are you sure you're it's http:// and not https:// you're trying to open? See e.g. stackoverflow.com/questions/40430501/… Commented May 1, 2019 at 5:17
  • Have you used an agent? Commented May 1, 2019 at 5:29

4 Answers 4

5

Thanks for your help guys. After emptying the browser cache and flushing the DNS it's now working again.

Sign up to request clarification or add additional context in comments.

Comments

3

I had a similar problem, and checked that my VPN ( I use warp) is turned off already. However, when I turned it on, my local worked again.

2 Comments

The exact same thing worked for me. Any idea why you need to turn on Warp? Doesn't make any sense.
I did not delve into it to be honest. But after VPN-on launch, even after turning the VPN off did not create any sort of blockage.
1

Have you used an agent?

ping localhost, check it is 127.0.0.1?

Comments

0

Little late to this, but i came across the same issue; Turned out my vpn app was running preventing me from accessing the app on http://localhost:3000. So, turning off the vpn should resolve the issue

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.