A simple and interactive Subnet Calculator built with Python and Tkinter. Designed for network technicians, students, and IT professionals to quickly calculate subnetting based on host requirements and IP address.
- Input number of required hosts and base IP address
- Automatically calculates:
- CIDR notation
- Subnet mask
- Wildcard mask
- Network and broadcast addresses
- First and last usable IP
- Total usable host count
- First 5 reserved IPs (for router, PBX, DHCP, etc.)
- Export the results to a
.txt
file - Clean and responsive GUI
- Fully offline and lightweight
git clone https://github.com/mustafa-ali0/-Python-Subnet-Calculator.git
cd Python-Subnet-Calculator
python main.py
cd (the path of the Python file of Python-Subnet-Calculator.py)
python C:\Download\Python-Subnet-Calculator\main.py
- If you want to run the program directly without any commands
- Python (3.6 or higher)
- No external libraries needed (Tkinter is built-in)
You can click the “Export to File” button to save the output as a .txt
file for record-keeping or printing.
Mustafa Ali
This project is open source and free to use under the MIT License.