Map network drive to .local address

I am connecting a network drive to a computer using the map network drive option. If I give it the IP address (192.168.1.x) it will connect fine, but if I give it the .local address (name.local), it ends up saying that it cannot access the device. I would like to use the .local address so that in the case that the ip address gets changed (e.g. to, the computer will still know where to connect.