Subnet Mask and IP Calculator 🌐📈
This project is a Python script to calculate the subnet mask, network address, broadcast address, and the number of available hosts between the IP addresses (written in CIDR notation).
🚀 Features
-
Convert IP addresses from dotted-decimal notation (e.g., "192.168.0.1") to binary format.
-
Extract the subnet mask from an IP address in CIDR notation and convert it to binary.
-
Calculate the network address and broadcast address using logical AND and OR operations with the subnet mask.
-
Determine the number of available hosts within the given network.
🛠️ Usage
-
Clone the repository:
https://github.com/CaptainBeluga/ip-calculator.git
-
Run the script:
python ip_calc.py
-
Enter the IP address in CIDR notation (e.g., "192.168.0.0/24")
😏👌