Skip to main content

Rails stopped listening on localhost

Rails • Asked by Don Neethling
I am a novice rails user, I have been plodding along without too much trouble until today.
I use a Mac (just stating that in case my environment needs to be considered)
After creating a new rails app and running bin/rails s I would usually be greeted by the following

don9000:apple donovanneethling$ bin/rails s
=> Booting Puma
=> Rails 5.2.0 application starting in development 
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Version 3.11.4 (ruby 2.4.1-p111), codename: Love Song
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://0.0.0.0:3000
Use Ctrl-C to stop

except to would reflect that it was listening on localhost instead of 0.0.0.0

I was busy coding when this changed all of a sudden
Nothing loads when I try to browse to 0.0.0.0:3000.

I recall having the same issue a while ago and realised I was running rails -s instead of bin/rails -s but in this case I experience the same regardless of the command that I run

please advise

Don


What does the log say if you load the page in the browser?

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.