Wildcard DNS Using xip.io
As a developer, you need a way to test your web application on a wide array of computer devices such as desktops, laptops, tablets, mobile phones and more. Using the services of http://xip.io for wildcard DNS, you can access your web application from any device on your network.
For example, if your web application is hosted on a staging or development server with an IP address of 10.0.0.1, you could access the application by going to http://10.0.0.1.xip.io (or any subdomain variant) from essentially any other device that is also on the same network. The xip.io site will simply send the IP from the domain back in the response.
If you're a solo developer or don't have access to a staging/development server, you could also use this same method to access your locally developed web application from your other devices as well.
For example, if you're using a Mac, go to System Preferences > Network, then grab the IP Address (e.g., 188.8.131.52). Windows users should be able to go to the command prompt and type ipconfig, then grab the IPv4 Address. Then, you can choose to add any subdomain as a prefix to it and add ".xip.io" to the end of it to get something like:
Then, you only need to tell your web server where to route requests that come in for these types of domains. For example, if you're using Apache, you could make an entry to your httpd-vhosts.conf file such as:
Then, restart Apache and try accessing your domain from your networked devices. If you're using IIS, you should be able to do essentially the same by editing your site's Bindings.
Finally, if you're developing a Mura CMS site, you could go to Site Config > Edit Site to get to the Site Settings area. On the Basic tab, find the Domain Alias List (Line Delimited) field and enter the domain such as:
Hope this helps make testing your next web application a bit easier in the future.