Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Addressing

Status
Not open for further replies.

adiMasher

Programmer
Aug 31, 2001
144
0
0
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top