A Simple Internet Connection Checker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


SICCiPy - Simple Internet Connection Checker

Dishant Rathi @techiedishant

A Simple Internet Connection Checker in python, wiz. used to check that, the machine on which the script is running has an Internet Connection or Not.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

git clone https://github.com/dishantrathi/SICCiPy



To run the program, simply execute

  • For Windows
    py SICCiPy.py
  • For Linux
    python3 SICCiPy.py

Concept Break down into parts

Explain "HOW" and "WHAT" these lines of code do ?

This code works on HTTP Response code {Default : 200}{May Change}, as shown in the image below the Response Code for Google is 200.

Response Code

Now if the response code is matched then it will show "Internet Enabled" else will pass and thows an exception "No Internet Connection : Check Your Lan | WiFi | Modem | Router Connections For More".

Try your self with an internet connection and by disabling wifi.{you will understand very well}

Usage And Forks

Fork this repo and use in your block of code to check internet connection before running http requests.


This project is licensed under the MIT License - see the LICENSE.md file for details