31.03.2021, 08:19
Not sure if this is correct approach but you could try ping google.com. Use this script, you will get 0 on success.
Code:
ip = 'google.com'
res = os.execute('ping -c 2 -W 1 ' .. ip)
log(res)
------------------------------
Ctrl+F5
Ctrl+F5