How Do I Verify xip.io Is Working?
TTo confirm that xip.io is functioning properly, follow these steps:
-
Copy the xip.io address from MAMP PRO.
-
Open the command line and run the following command:
-
If your IP address is returned, this means xip.io is working correctly.
Troubleshooting Router Settings
If xip.io isn't working, the issue might be with your router. For example, AVM’s FritzBox has a security feature that blocks DNS resolution in the local IP range (default 192.168.178.0/24). To test this, try the following commands:
dig 192.168.178.102.xip.io
dig 192.168.178.102.xip.io @8.8.8.8
If Google's DNS server (8.8.8.8) resolves the domain name, but your FritzBox DNS server doesn’t, the problem lies with the FritzBox settings.
Solutions for FritzBox Users:
- Use Google DNS: Change your local computer’s DNS to Google’s DNS (8.8.8.8). This will work, but you won’t be able to use the "fritz.box" domain name anymore.
- Set Up a Local DNS Resolver: Use a local DNS resolver or forwarder on a Linux router in your network.
- Install Freetz: Install Freetz (http://freetz.org/) and dnsmasq on your FritzBox.
- Whitelist xip.io: Add "xip.io" to Heimnetz -> Netzwerk -> Netzwerkeinstellungen -> DNS-Rebind-Schutz in the FritzBox settings to allow the FritzBox's DNS server to work with xip.io.
By following these steps, you can ensure xip.io functions correctly behind a FritzBox router.