Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if there is internet connection

# pip install pythonping
from pythonping import ping
def internet_connected(test_ip_address="8.8.8.8"):
    return ping(test_ip_address).success()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #internet #connection
ADD COMMENT
Topic
Name
6+5 =