IP Calculator is a Python Program to analyse a network given an ip address and subnet mask.
Given any valid IP address and subnet mask, use this calculator to determine the network ID, the first and last hosts in the network, and the broadcast address and number of hosts this network can provide.
Version 1.5:
- Added Support for CIDR Notation.
- Handled more errors for subnet like the first digit being less than 255.
- The ability to analyse a given ip address and the subnet mask.
- The Network analysis result contains:
- CIDR.
- Network ID.
- First Host Address.
- Last Host Address.
- Broadcast Address.
- Total number of hosts can be supported.
- The ability to handle various errors like invalid ip address or subnetmask.
- The ability to copy the results.
There are two versions of this calculator one uses CLI(Command Line Interface) and the other is a GUI (Graphical User Interface).
- Download only the python script
- Run the script by executing the following command
python ip-calc.py
Then, Enter ip address and subnet mask when promoted
Please, Enter an Ip Address: 10.15.198.16
Please, Enter Subnet Mask: 255.255.128.0
- Download only the exe file (ip-calc.exe) and run.
C:\Users\'your username'> python ip-calc.py
Welcome to IP Calculator v1.5 by Mouhab-dev
Project Repo on Github: https://github.com/mouhab-dev/ip-calculator
Find me on Github: https://github.com/mouhab-dev
Please, Enter an IP Address: 10.15.198.16
Please, Enter Subnet Mask: 255.255.128.0
--------------------------------------------
CIDR: / 17
Network ID: 10.15.128.0
First Host Address: 10.15.128.1
Last Host Address: 10.15.255.254
Broadcast Address: 10.15.255.255
Total number of Hosts = 32766