Skip to content

Latest commit

 

History

History
91 lines (62 loc) · 2.53 KB

README.md

File metadata and controls

91 lines (62 loc) · 2.53 KB

About

Simple program to check if IP adresses are active or not using ping command. NOTE One Thing: I'm not a C programmer. This code is simple, could be done better, but it works.

How it works

It simply pings a website (of your chouce) and depending the status code returned by the ping command, it's the status of the website/ip address.

Possible statuses are:

  • 0 => Alive
  • 1 or 256 => Unreachable
  • 2 or 68 => Unknown host
  • [Any other code] => Unknown

Screenshots


Supported Operating System

  • Windows
  • Linux
  • Android (via Termux App)

General Requirements

  • Internet connection

Installation

follow the instructions below to install this program on your OS

On Windows

Open PowerShell with Admin privileges and run this command:

Set-ExecutionPolicy RemoteSigned; Invoke-WebRequest https://raw.githubusercontent.com/1ray-1/check-ip/main/install-windows.ps1 -OutFile "$PWD\install-windows.ps1";  .\install-windows.ps1

And confirm with a "Y"

On Linux/Termux

Open terminal and run this command:

wget https://raw.githubusercontent.com/1ray-1/check-ip/main/install-linux.sh; chmod +x install-linux.sh; clear; bash install-linux.sh

You'll have to enter sudo password on Linux

On both cases (Linux and Windows) the needed executable (for your system architecture) will be installed in a directory which is in PATH, so you can run it by just typing check-ip in terminal/cmd

From releases

You can just download the executable file for your OS here and execute it.

From source

You can download this repo and build check-ip.c manually (using C compiler).

How to use (from CMD/Terminal)

Usage: check-ip [OPTION] IP_ADRESSES_TO_CHECK

Options:
-s            Save data to data.txt
-h, --help    Get help text

How to remove

On Windows

Open CMD with admin privileges and type:

  • del C:\Windows\System32\check-ip.exe

On Linux

Open terminal and type:

  • sudo rm /usr/bin/check-ip

if the above command doesn't work, type:

  • sudo rm /bin/check-ip

And enter sudo password

On Termux

Run this command:

  • rm /data/data/com.termux/files/usr/bin/check-ip

License

Check Ip is licensed under MIT License.