Other devices on the network can’t resolve ip of the .local site
Troubleshooting Questions
Is it supposed to be possible to access a site hosted by local from another device on the same network ? If not, is there anything I can do to enable it ? If it is, what do I need ot do ?
I want to see the behaviour of my site on actual devices and mobile browsers, not just the browsers on my Mac.
Replication
I’ve tried reaching the .local site from an iPhone connected to the same wifi network as the Macbook Air that I’m developing on. Using an andrid to reach it fails with a message about being unable to resolve the ip address
I have tried entering the ip address of the Macbook in the browser on the devices
System Details
Local version 5.9.3+5100
OS X 10.14.6 (I know, still need a 32 bit application)
Thank you for the reply. After googling I worked out that NAMO is a name server. You’re also saying that I need to make my local site be mylocalsite.host and not mylocalsite.local.
However, why isn’t it working when I use the ip address of the machine where local is running in the browser on the device? The device is on the same network as the Mac.
I did “sudo lsof -i ‘:80’” and got back that nginx is listening on the default port 80 so there should not be a need to specify a port.
I don’t know why Localwp doesn’t work on the local network. I’ve been looking for a solution for a long time. But it works with NAMO. You can find many threads on this problem. No solutions worked for me except those with NAMO.
Regarding the domain endings the MAMP Support writes “Avoid using names like “mylocalsite.local” or “mylocalsite.dev”, because .dev and .local are reserved on some Systems.”
Enter in your mobil devices under WLAN the DNS settings the IP-Address on which Local is running.
The reason for this is that Local only is telling your specific machine about the site that it’s managing. This means that if both you and I were working on a site called example.local, we’d both be able to work on the site on our own machine.
Using a Live Link allows you to share a quick session and might be good enough for your purposes, but another solution that I turn to when doing multi-device testing (like crafting complex css rules) is to user browser sync.
See this reply in the forums for a quick overview of the tool in relation to using Local: