7wdzng
Last Updated: February 25, 2016
·
3.094K
· mattstauffer

Preview MAMP Pro/localhost site on any device on your network with xip.io

If you want to access your locally-hosted site (e.g. running MAMP Pro or something similar) on any device on your network–including mobile devices–add an alias to your site with the following format:

sitename.192.168.1.1.xip.io

Replace sitename with any URL-friendly phrase you want (I choose my site's name), and 192.168.1.1 with your local IP. Voilà! Instant multi-device testing, no extra software required.

Xip.io is a DNS forwarding service provided for free by 37signals, for use in exactly this situation.

(From this article)