Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.18/5 (3 votes)
See more:
I don't know how to calculate the IP address
ex: 192.168.1.0
like that one above I don't know how to set the range to any IP address I want so I can identify the mask or the class of it

in summary .. i need to code a program that if i give it any ip address it will give his range, mask ,broadcast..

What I have tried:

I have tried on c++ and python but don't know how to code the program to identify any IP address
Posted
Updated 19-Apr-22 6:57am
v2
Comments
jeron1 19-Apr-22 12:14pm    
You haven't shown any code so no one can comment on it. Can you solve this on paper?

1 solution

 
Share this answer
 
Comments
CPallini 19-Apr-22 12:21pm    
5.
Richard MacCutchan 19-Apr-22 12:39pm    
We should total all these 5s and send them to Google. :)
CPallini 19-Apr-22 12:53pm    
I do support Wikipedia. :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900