What I think should be a simple problem turns out to be a tough nut to crack.
Assume that I am connected to my home router, but the internet is down. (WiFi is all I care about, not cell data)
IF I use the trigger WiFi Connected it returns TRUE, since I am connected to the SSID (but not to the internet).
If I use the condition Active Network Type, it also returns TRUE under these conditions.
How can I test whether or not I have an internet connection? There must be a way!
How can I test whether or not I have an internet connection?
Moderator: Martin
Re: How can I test whether or not I have an internet connect
The most obvious way would seem to be to send an Action / HTTP Request (to a reliable web site). If it fails, you'll get an error message.
Or perhaps download a dedicated app (PingTools, for example) and use automagic to run that?
Or perhaps download a dedicated app (PingTools, for example) and use automagic to run that?
Re: How can I test whether or not I have an internet connect
Thanks for the reply. Following up on your reasoning, I tried using the Condition Host Reachable, with ping. I used an IP address for a DNS server (Opendns) as the address. This seems to work!
Thanks for the guidance.
Thanks for the guidance.
Re: How can I test whether or not I have an internet connect
What trigger do you use please?
Re: How can I test whether or not I have an internet connect
If I understand your question correctly, the ping is a CONDITION, not a trigger. Please see previous posts.
Re: How can I test whether or not I have an internet connect
I use this but it doesn't work.
- Attachments
-
- Screenshot_2017-06-25-21-41-48.png (73.16 KiB) Viewed 21514 times
-
- Screenshot_2017-06-25-21-41-57.png (60.03 KiB) Viewed 21514 times
Re: How can I test whether or not I have an internet connect
Ciao Akapelis!
Type: Automatic
Host: www.google.com
does not work with me either!
Type: Socket
Host: www.google.com
Port: 80 (also 443)
or
Type: Ping
Host: www.google.com
is working!
greeting
Peter
Type: Automatic
Host: www.google.com
does not work with me either!
Type: Socket
Host: www.google.com
Port: 80 (also 443)
or
Type: Ping
Host: www.google.com
is working!
greeting
Peter
Re: How can I test whether or not I have an internet connect
The "socket" option works perfectly, the "ping" option works fine when I'm connected by WiFi, but returns me false (no internet) when connected in 4G.
Thank you Peter.
Thank you Peter.