0

I have set up my Pi 3+ with an apache2 server, which works in my browser with both the IP and its hostname raspberrypi.local. I can also access the Pi through SSH. However, after some uptime (maybe a day) I cannot access it through the browser (tried Chrome and Edge) on my Windows PC with either raspberrypi.local or its IP. I can still access it with SSH (both with raspberrypi.local and the IP) and from my iPhone's browser. If I reboot the Pi, I can access it through my PC's browser again. All throughout, I also see it from my WiFi router.

What could the error be? It appears to be an error on my PC, but I have no clue where to start.

7
  • Welcome. You have not actually said what the state of the apache server is when this happens (which should be easy to check since you can ssh in). Commented Jan 24, 2023 at 20:12
  • The apache server is up all the time, and, as mentioned, I can access it on my mobile device's browser. Commented Jan 24, 2023 at 20:31
  • Sorry -- missed that. As you remark, then, the error appears to be with the PC. Have you tried any of the recommended tweaks with chrome to resolve local DNS issues? Are you using DHCP or a static address with the Pi? I think the browser(s) may be caching addresses and/or using their own DNS servers (keep in mind Edge is Chromium based). I think you need to try (or explain how you have tried) flushing browser cache, etc. Also, is the web server using TLS (ie., https)? Commented Jan 24, 2023 at 20:57
  • @goldilocks caching addresses and/or using their own DNS servers would not effect using the IP address, since that doesn't require DNS; and raspberrypi.local would be resolved using mDNS*/*bonjour*/*avahi or whatever its called Commented Jan 24, 2023 at 22:18
  • tried Chrome and Edge so, effectively tried the same pig with two shades of lipstick :p - try Firefox Commented Jan 24, 2023 at 22:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.