Maybe I missed this part when I was reading through the networking books but I was curious to see why when in every example code I see about changing a dotted IP address to Long it flips the quadrants around
like the address 127.227.204.1
127 = 01111111
227 = 11100011
204 = 11001100
1 = 00000001
now logicially in my head I would go from left to right
01111111 / 11100011 / 11001100 / 00000001
And when subnetting that's exactly what I do.
but when converting to long I do this.
00000001 11001100 11100011 01111111
I'm just confused why the byte arrangement is different.
Thanks for any answers,
Martin
like the address 127.227.204.1
127 = 01111111
227 = 11100011
204 = 11001100
1 = 00000001
now logicially in my head I would go from left to right
01111111 / 11100011 / 11001100 / 00000001
And when subnetting that's exactly what I do.
but when converting to long I do this.
00000001 11001100 11100011 01111111
I'm just confused why the byte arrangement is different.
Thanks for any answers,
Martin