I have a range of ip addresses ,and I need to check that my client which accesses my application falls in that range. I went thru few articles, and they shift bits after splitting the IP
for instance 127.0.0.1 is splitted after the '. ' and after splitting we get an array of 4 elements, and each of it is shifted
element 1 >> 24;
etc .... and summed up together to check.
May I know why we use the shift operator here ?