MenuPing icon indicating copy to clipboard operation
MenuPing copied to clipboard

Show timeout / no route to host

Open JonyIvy opened this issue 2 years ago • 3 comments

I love this little program, thank you!, and I have a suggestion for improvement:

When there is no network connection, regular 'ping' shows 'no route to host' and 'request timeout'. It would be nice if this could be reflected in the menu bar. Currently it just keeps showing the last successful ping's time, which is misleading.

JonyIvy avatar Nov 29 '23 10:11 JonyIvy

I have seen a yellow dot on one occasion, which probably means there is no connection? But usually when I lose the network connection, that is turning WiFi off or unplugging the connection to the dock, MenuPing keeps showing the last ping value (while ping in the command line shows 'no route to host / request timeout').

JonyIvy avatar Dec 02 '23 11:12 JonyIvy

Hi @JonyIvy

I'm glad you like MenuPing.

Internally MenuPing uses the ping3 python library, that returns :

  • either False on error -> that is printed with a Red dot
  • either None on timeout -> that is printed with a Yellow dot

"Error" (red dot) generally means that the domain name was false (which should not be the case with MenuPing, except if you change the target domain to a non existant one), or that there was network error (for instance, that you switched your Wifi off).

I have not observed that when switching the Wifi off, the last ping value is still showing in my environment.

Could you confirm if it is always the case ?

julienbordet avatar Dec 12 '23 12:12 julienbordet

Yes it always keeps showing the last value, whether I'm on WiFi and turn WiFi off, or I'm on dock/hub with Ethernet and disconnect the dock. MacOS 13.6.2 (22G320)

JonyIvy avatar Dec 12 '23 13:12 JonyIvy