A popular pattern in multi-tenant applications is the use of subdomains to partition tenants. This is when you have one tenant accessing your app at
tenant1.myawesomeapp.com, another at
tenant2.myawesomeapp.com, and so on.
Using subdomains for this purpose has it’s advantages and disadvantages, but that’s a different topic. I’m going to describe how to use xip.io to test subdomains in your application, as an alternative to adding an entry in /etc/hosts on each machine you are testing on and for each subdomain you are testing.