Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

TCP/IP Addressing.


ghost's Avatar
0 0

Hello Fellow Hackers :)

I'm Sitting here reading about TCP/IP and some other protocols. I went to www.w3schools.com and saw they had a guide on TCP/IP so I thought I would read it, just to learn the basics and stuff.

Anyway, After some Reading I saw this: http://w3schools.com/tcpip/tcpip_addressing.asp

"32 Bits = 4 Bytes

TCP/IP uses 32 bits addressing. One computer byte is 8 bits. So TCP/IP uses 4 computer bytes.

A computer byte can contain 256 different values:

00000000, 00000001, 00000010, 00000011, 00000100, 00000101, 00000110, 00000111, 00001000 …….and all the way up to 11111111.

Now you know why a TCP/IP address is 4 numbers between 0 and 255"

Now, My Question is: it says that a Computer byte can contain 256 different values, but the TCP/IP address is 4 numbers between 0 and 255, What happened to the last value?, is it not used? or is it a typing error?


ghost's Avatar
0 0

0 to 255 = 256 possibilities !!!


richohealey's Avatar
Python Ninja
0 0

0 to 255 inclusive…..

try this:

#!/usr/bin/python biglist = range(255) print biglist print len(biglist)


ghost's Avatar
0 0

sle1306 wrote: 0 to 255 = 256 possibilities !!!

Of Course!!! Thank you guys :P


ghost's Avatar
0 0

Now wait til you get to the part about subnetting, supernetting, and variable length subnet mask….

You will know this by heart if you learn those…

128.64.32.16.8.4.2.1