-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Add indicator of (missing) online connectivity to frontend #3840
Comments
The problem with that is that the general connectivity check needs to a) use an IP (to not interpret issues of name resolution as complete loss of connectivity) and b) needs to be reliably reachable. I cannot guarantee that the IP of Hence the choice to use something as default that is not owned by Google (as that was raising concerns for many), reachable by IP long-term and with a high availability. Thus: a public well-established DNS server. I'm aware that some people deny external traffic on port 53, the general majority however doesn't and due to the nature of how the internet works it's a good candidate to not get firewalled. Port 80 or 443 would be better, but see the requirements above again as to why that is problematic. The setting is configurable to allow people in your situation to change it so it fits their setup. So, I'm not so sure if I really want to change this here, due to the aforementioned reasons, but I agree that a notification about the offline state would be a really good idea! |
Seems fair enough. I think the main issue is the lack of notice so I'd be happy for the resolution to just be the notification. Just to check, is the default now
|
Now you made me check, and damn, I misremembered myself. I wanted to switch it to 1.1.1.1 due to the aforementioned concerns, but so far didn't. |
Less controversial than google's 8.8.8.8 As mentioned in #3840
Well... this gave me one hell of a headache. My case:I had configured static IP, Gateway and DNS via the Request:Please add a disclaimer on the server tab saying that name resolution does not use the IP set on HOST IP field. I cant figure out if this only happens when the |
What made you think it was supposed to be used for name resolution in the first place? It is a connectivity check that utilizes a DNS endpoint by default simply because that is readily and highly available, that doesn't mean it is a DNS configuration or it would explicitly say so (and would also be very much out of scope for OctoPrint). You can configure any IP address and port there. You are the first person I heard of that assumed this would actually manipulate DNS resolution in any way, I'm a bit worried that adding a statement like you are requesting here would more confuse than help to be honest. |
If the connectivity check detects that OctoPrint cannot reach the internet, this will now be reflected on the UI. Implements #3840
Implemented and ready for 1.6.0. Icon can also be clicked and links to https://faq.octoprint.org/connectivity-offline |
1.6.0 has just been released. |
Is your feature request related to a problem? Please describe.
Having just gone to the OctoPrint UI to install a plugin, I found OctoPrint claiming that it was offline. After some investigation I found this was because the connectivity check uses Cloudflares DNS (1.1.1.1, port 53).
Like many others using PiHole, I have configured my firewall to deny requests on port 53 outside of my network. This prevents devices using their own DNS settings to bypass local network configurations (a practice used to prevent DNS ad blocking). This had the side-effect of OctoPrint thinking it was offline when it actually had full connectivity.
Describe the solution you'd like
Given that most of the OctoPrint functionality which requires an internet connection uses
octoprint.org
orgithub.com
(e.g. plugin installs, updates), would it not be better to use one of these for the connectivity check?Describe alternatives you've considered
As a minimum, I would think there should be an indicator in the header bar or notification when the page is first loaded to show that OctoPrint thinks it is offline. There doesn't seem to be an indication at the moment which means that users could be missing out on vital security updates without realising.
Additional context
#2474
The text was updated successfully, but these errors were encountered: