Nov-06-2018, 11:12 AM
Run the interpreter, import urllib and try
If you just want to check for the internet connection there are services which return your public IP.
urllib.request.get('https://google.com').getcode()
to see if you get 200.If you just want to check for the internet connection there are services which return your public IP.