ip add consist of four octets separated by dot. each octet consist of 8 bits. see below.
xxxxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx;
each bit per octet has an equivalent decimal value, the first bit, the right most bit, the equivalent value of that is 1 then the next bit is 2 then 4, 8, 16, 32, 64 and 128. as you notice you just multiply by 2 starting from the first bit. 2 is our multiplier because binary is using the power of 2. if all the eight bits are 1 then the decimal equivalent of that is 255 just simply add all the decimal equivalent of each bit and you will get 255. so if you will convert 172 into binary that will be 10101100. if you add those decimal equivalent of those with 1 you will get 172. just always remember the decimal equivalent of each bit in an octet.
1 1 1 1 1 1 1 1
128 64 32 16 8 4 2 1
to complete your question, see below answer.
172.16.5.20 = 10101100.00010000.00000101.00010100
11011100.11000011.10100100.01111010
Which of the following binary sequences corresponds to the IP address 165.76.24.17
Answer: 172.16.192.160 IP address: 172.16.192.166 in binary: 10101100.00010000.11000000.10100110 Subnet mask: 255.255.255.248 in binary 11111111.11111111.11111111.11111000 get answer by ANDing answer in binary: 10101100.00010000.11000000.10100000 answer: 172.16.192.160
because for the set binary number it will be 11111111 which is in hexadecimal is FF = 255
01000000.00100000.00010000.00001000
1111000.110.1100.11001000
Oh, dude, the binary network ID of the loopback IP address 127.0.0.1 is 01111111. But like, who really cares about that, right? It's just a fancy way of saying "this is me talking to myself." So, like, chill out and don't stress about the tech jargon, man.
Who da f%*$ knows!
Each number in an IP address represents an octet (8-bit binary number) in the IPv4 address format, separated by periods. The numbers range from 0 to 255 and indicate the specific network and host address within the IP network. IP addresses are used to uniquely identify devices on a network.
IP Address consists of 32 binary digits. Class A IP addresses are the ones with the 8 most significant bits of the form (0xxxxxx) -where x represents the net ID- and the rest of the IP is host ID. A class IP address usually used in cases where the number of networks is relatively low with very large number of hosts.
Subnetwork
A full numeric IP address with port number is XX.XX.XX.XX:PPPP where the "X"s are the IP address and the "P"s are the port number.