ruby-on-rails - query - ruby dns server

What does binding a Rails Server to buy you? (2)

I am using "" as a DNS wildcard for testing on different devices. I set my primary domain to my IP address. I fire up a rails server with bundle exec rails server and I go here www.<ip_address> and notice my rails server doesn't respond.

However, if I bind my rails server to like so bundle exec rails server -b, it works! I don't understand what is telling my server for this to work. Can someone make sense of this?

Binding to tells the service to bind to all IP addresses on your machine. Rails server used to do this by default, but with 4.2 changed to binding only to localhost.

Basically if it's only bound to localhost then it will only respond locally to either localhost or which can't work through a DNS service because it's not a public IP address.

When you use it will bind to localhost and to your routable IP address.

I think you need to use binding any time you're in a guest/virtual machine.