Rails changed the default behavior for WEBrick somewhere around version 4. Instead of binding to 0.0.0.0
, it will now default to localhost
.
This makes life difficult when you're running Rails inside a VM like Vagrant, mostly because it won't work. ;)
Fortunately, you can force Rails back into the old universal address with the following snippet
# config/boot.rb
# ... end of existing file