hotel: Can't connect to server on port XXXXX
I’m having a problem when trying to access one of the projects through the .dev domain. The output that appears in the browser is as follows:
Can't connect to server on port 45355. Server crashed or timeout of 5000ms exceeded. Retry or check logs.
sh -c npm start
> pomodoro-app@0.0.0 start /home/julianorafael/Development/projects/pomodoro-app
> cross-env NODE_ENV=development node server.dev.js
Starting server...
Server started
Listening at localhost:3000
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (11 by maintainers)
Just in case others encounter the same issue, @jalada has found a workaround. You need to bind to
127.0.0.1
. There’s usually an option for that, for example with Rails it looks like this:However, feel free to report issues with other servers.