My Raspberry Pi 3 b+ will not allow me to ping it even though I've ping'd and ssh'd into it plenty of times before now.

I can ping my main computer from the pi but not the other direction.

ping hostname.local
ping: cannot resolve Hostname.local: Unknown host

If I use ifconfig on my Pi and get the IP address manually, then I can ping it.

ping pi_ip_address.local
PING Hostname.local (pi_ip_address): 56 data bytes
  • This is not a ping problem, it is a DNS problem. – RalfFriedl Apr 10 '19 at 5:14
  • I can (generally) ping my Pi on the local network using hostname.local or IP address. If you cannot this is a problem in your computer or router. Ping by hostname is an ARP issue - this can be a complex issue, but is unrelated to the Pi. Refreshing the arp cache can resolve this issue. – Milliways Apr 10 '19 at 5:34
  • Is your "main computer" a Windows PC? – Seamus Apr 10 '19 at 9:07
  • Do you use static ip addresses? What is the ip address of the RasPi? Please address me with @Ingo, otherwise I won't see your reply. – Ingo Apr 11 '19 at 9:04

If your "main computer" is Windows, then this is likely the cause of the problem... "the problem" being that Windows seems to have adopted zero-configuration networking a bit differently than Linux and Apple.

Since I'm not sure your "main computer" is Windows I won't speculate further. But if it is, the people at AdaFruit have a couple of unique ideas that may help. Try one of their solutions first, and if that doesn't resolve it, let us know.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.