IP-Checker is a Python script designed to generate, validate, and manipulate IP addresses. It provides the ability to generate random IP addresses, generate IP addresses with one incorrect octet, and validate user-supplied IP addresses.
Clone the repository to your local machine:
git clone https://github.com/Kerkpower/ip-checker.git
cd ip-checker
Run the script using the following command:
python script.py [options] [custom_ip]
--wrong
: Generate an IP address with one incorrect octet.--bool
: Print True if the IP is valid, else print the IP.--help
: Print a help message.
-
Generate a random IP:
python script.py
-
Generate an IP with one incorrect octet:
python script.py --wrong
-
Validate a custom IP:
python script.py 192.168.0.1
-
Print True if the IP is valid:
python script.py --bool 192.168.0.1
This project is licensed under the Apache License 2.0.