Comments
stackoverflow.com/questions/777617/calculate-broadcast-address-from-ip-and-subnet-mask
Posted by crouse
1. Subtract the given subnetmask from 255.255.255.255. For example given subnet is 255.255.255.252 then you value is 3
2. Convert the IP address to binary
3. Convert the given subnet mask to binary
4. Add step 2 + step 3 in binary
5. Convert step 4 back to (example) IP address format 172.20.102.100
6. In Step 1 you would have got a value like 3. Add 3 to Step 5 so the broadcast address will be 172.20.102.100 +3
So broadcast address (example) will be 172.20.102.103
Posted by clavton