How To Band-Aid Fix mDNS not Resolving Over VPN
From what I can gather on the subject, it is hopelessly convoluted to use mDNS outside of the LAN. It’s great to be able to access a device by addressing it as .local
on a local network instead of locking in the IP address, but for the purpose of practicality, it is quicker to reserve the IP address and use the IP address —which remains reachable— over VPN.
So my recommended “fix” would be:
- Set a static IP on the device
- Reserve the same IP on the router for the MAC address
It’s easier to maintain the list of what devices have which static IPs with the router. The reason for the duplicate reservation has to do with MAC address randomization. I’ve seen the cases where some of the routers would not able to allocate the same IP address to the device, as the MAC address randomization has kicked in whereby it won’t match the record on the table. I suspect some modern firmwares do keep up with the changes and the trend of randomization; but it never hurts to reassert the IP from the device as a backup.