2. For each bit in the Subnet Mask that has a value of 0, convert the corresponding bit in the IP Address to 1.
Note that the IP Address and Subnet Mask are composed of four dot-separated decimal numbers and each decimal number represents an 8-bit binary number. Also note that the decimal number 255 is 11111111 in binary.
In this example, the last two decimal digits of the Subnet Mask are zeros. Since the corresponding bits in the IP Address must be converted to 1, the last two decimal numbers of the IP Address should be 255. Therefore the broadcast address is 172.18.255.255. (For more information on determining broadcast addresses, consult with your network administrator.)