react-starter icon indicating copy to clipboard operation
react-starter copied to clipboard

Failed to load resource: net::ERR_CONNECTION_RESET

Open Frikki opened this issue 10 years ago • 6 comments
trafficstars

When running npm run dev-server and subsequently npm run start-dev on the Vagrant installation created by the Vagrantfile, accessing http://localhost:8080 on the host machine results in a Failed to load resource: net::ERR_CONNECTION_RESET with an empty http://localhost:2992/_assets/main.js.

However, running npm run build and npm run start seems to work flawlessly.

Is it wrong of me to think that the development should work, too?

Frikki avatar Apr 20 '15 09:04 Frikki

Researching this issue myself, and found a lead here... I haven't been able to figure out how to bind to 0.0.0.0 instead of localhost though...

withinboredom avatar Apr 25 '15 21:04 withinboredom

I'm pretty confident this is the issue, I added a host entry using the vagrant box's ip and didn't get a response but was able to get a response from inside the machine.

withinboredom avatar Apr 25 '15 21:04 withinboredom

happening for me too... annoying.

zackify avatar Apr 29 '15 17:04 zackify

Send a PR when you find a solution. I don't use Vagrant, so I cannot fix it.

sokra avatar Apr 30 '15 11:04 sokra

I just followed the advice in this answer to get it working: http://stackoverflow.com/a/29812368/518002

Just change 127.0.0.1 localhost to 0.0.0.0 localhost in the VMs /etc/hosts

cshenoy avatar May 11 '15 23:05 cshenoy

Gr8 work man! Thanks!

oliwerhelsen avatar Sep 29 '15 07:09 oliwerhelsen