Skip to content

A simple and user-friendly Python subnet calculator with a graphical interface (Tkinter). Calculate CIDR, subnet mask, usable host IPs, and more — then export the results to a text file. Perfect for network engineers, students, and IT technicians.

Notifications You must be signed in to change notification settings

mustafa-ali0/Python-Subnet-Calculator

Repository files navigation

🧮 Python Subnet Calculator

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.


📌 Features

  • 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

📸 Screenshots

Main Window Example Output


🚀 Getting Started

1. Clone the Repository

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

2. Click on the main.exe

  • If you want to run the program directly without any commands

🛠 Requirements

  • Python (3.6 or higher)
  • No external libraries needed (Tkinter is built-in)

📤 Export

You can click the “Export to File” button to save the output as a .txt file for record-keeping or printing.


👨‍💻 Author

Mustafa Ali


📄 License

This project is open source and free to use under the MIT License.


About

A simple and user-friendly Python subnet calculator with a graphical interface (Tkinter). Calculate CIDR, subnet mask, usable host IPs, and more — then export the results to a text file. Perfect for network engineers, students, and IT technicians.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages