Using Netatalk, I am able to mount my Raspberry Pi on my Mac by typing open afp://mypi.local
in Terminal. I would like to be able to access the Pi without always having to type in ".local".
Trying open afp://mypi
results in an error message:
There was a problem connecting to the server "mypi".
Similarly, ping mypi.local
works but ping mypi
results in an error:
ping: cannot resolve mypi: Unknown host.
mypi
in yourhosts
file?.local
means name resolution is currently working with mDNS. Unless you set up name resolution (hosts
file, DNS server, whatever) to resolvemypi
to the desired IP address, this won’t work./etc/hosts
is local to each computer, so adding "mypi" to/etc/hosts
on the Pi only has any effect on the Pi, not on the Mac. You'd need to add it to the/etc/hosts
file on the Mac to do what you want.