I am using "www.xip.io" 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>.xip.io:3000
and notice my rails server doesn't respond.
However, if I bind my rails server to 0.0.0.0 like so bundle exec rails server -b 0.0.0.0
, it works! I don't understand what 0.0.0.0 is telling my server for this to work. Can someone make sense of this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…