#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2007
    Posts
    114
    Rep Power
    41

    Subtracting IP addresses to find their range


    Why is the difference between these two IP addresses 511?

    Here are the two IPs

    94.197.255.255
    - 94.197.254.1
    ------------------------

    511?

    How is this number derived?

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,481
    Rep Power
    1752
    The 'proper' answer would depend on what subnet mask was in use, but assuming it was a 'standard' Class B, then you have (in the .254.* range) 255 numbers (1 to 255), then you'll have from 0 to 255 (a total of 256) in the .255.* range, for a total of ... 511.
    Even that is not a proper answer as often the *.255 IP numbers are used for broadcast.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2007
    Posts
    114
    Rep Power
    41
    There are 255 values between the .255 of the first IP and the .254 of the second?

    I don't understand.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    876
    Rep Power
    276
    If you know nothing[or very little] about networking, you probably wouldn't understand the 0-255 range.
    However, if you want more understanding, take a look at THIS LINK and hopefully it will help you understand more about IP addresses.

IMN logo majestic logo threadwatch logo seochat tools logo