Skip to main content

THE IP CALCULATER

--How i wrote : So i wrote ip calculater with the ip adress library python. İt was good and chill the library make it ahhaha:) For UI i use the python ui library streamlit. İts make it easier.

--What the code does: Takes an IP address (with CIDR) from the user,Example input: 192.168.1.10/24 ,CIDR (/24) tells how big the network is ,Creates a network object using Python’s ipaddress module ,This lets the program calculate things like network address, broadcast, and hosts. And returns all info ass dictionary..

--What does it calculate : Network adress , Broadcast Adress , Subnet Mask , Total IP , Usable host , First Host , Last host... Also can handle the networks like /31 i /32 .

-- THE PROBLEMS AND THE THİNGS HAS TO BE DEVELOPED:

-- Firt The CIDR :As you can see even user not enter the cidr, my code add it the defoult ip user enter. İ made it couse the code was cras when user not enter it but , i thing its still nor so good it can be reason to many crashes still.

The soludition : I am gonna add the input that ask user for the CIDR ( /32, /24 ) as you can see its now only /24. What would happend if user want to enter /32. This is why i will add this development..