[Gambas-user] Connection to the Internet ...

Christof Thalhofer chrisml at deganius.de
Tue Jun 15 15:14:28 CEST 2021


Am 15.06.21 um 14:49 schrieb Hans Lehmann:

> I am looking for a way to find out for sure whether from my PC there is
> currently

> (b) also to the Internet.

This is the easier one:
'ping -c 1 google.com'

But you must hope that Google is alive.

> (a) a connection to the local router and then

This is difficult:

https://stackoverflow.com/questions/1204629/how-do-i-get-the-default-gateway-in-linux-given-the-destination

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur


More information about the User mailing list