how to culculatye no of computer

Posted on 2004-11-20
Last Modified: 2010-04-10
255.255.25525.2 =3 comuter     = 254 computers

How to culculate it

What is the subnetmark
Question by:teera
    LVL 3

    Assisted Solution


    I'm not sure what you mean by that, but there is an excellent
    calculator for ips and subnet masks - here is the link to it - its free and its online -
    LVL 15

    Assisted Solution

    Here's how I do it - you use the last non-zero octet of the mask and subtract it from 256. This is used to determine the number of IP addresses (based on which octet) and then you need to subtract 2 (for the all zeros network address and all ones broadcast address) for the number of available addresses.

    Subnet mask
    Last non zero octet is the fourth, 252. Subtract this from 256 to get 4. Subtract 2 to give 2 "computers" (not 3)

    Subnet mask
    Subtract 224 from 256 to give 32, minus 2 to give 30 available addresses

    Subnet mask
    Subtract third octet value 255 from 256 to give 1. Since this is the third octet, you need to multiply by 256, which gives 256. Subtract 2 to give 254 available addresses.
    If it's the second octet, you multiply by 65536 (256 x 256) and the first is multiplied by 256 again - you probably will need a calculator for these.

    Last one - subnet mask
    248 from 256 gives 8, times 256 is 2048, minus 2 is 2046 available addresses.

    LVL 1

    Accepted Solution

    If you want to go down to the bit level, its a bit more complicated, but you might be able to understand it a bit more...

    lets say subnetmask of
                         128    64      32      16      8      4      2       1
    last octet is =    1       1       1        1      1       1      0       0
    so therefore.. you have the first 6 bits for subnets, and the last 2 bits for hosts..

    as always, all 0's in the host portion, is the network address, and all 1's in the host portion is the broadcast address....
    so that leaves 2 address's for hosts...  this subnetmask would only be used usually for a portion between routers or of the kind, because of its limited host addresses

    try another example  ...
                                                   5096   2048  1024  512   256
                                            3rd octet                                                                              4th Octet
                          128    64      32      16      8      4      2       1       |    128     64      32      16      8      4     2     1
    third octet is =   1       1       1        1       0      0      0       0       |      0        0        0       0       0      0     0     0

    so you have 4 bits in this octet for the network portion (1's) , and 4 for the host portion (0)'s (but remember this is the third octet, so have another 8 bits for the hosts..)

    so, you have 254 for the hosts from fourth octet before even counting the third octet...  then what i do is just keep increasing the bit value from the 4th octet to the third.. so 128, 256, 512, 1024, 2048, and 5096  now 5096 is the one to look at....   1 less than that is the number of hosts you have in the host portion... take away 2 for the network address and the broadcast address, and you have 5094

    so with subnet mask of you have 5096 hosts available..  and the rest are subnet addresses (15 addresses - 13 of those usable)

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    The DSL Parameters part of this article is valid and can be considered with any brand of internet router and modem (Dlink, 3com, Alcatel, Usrobotics, Parks), by accessing the configuration interface available by the manufacturer eg: …
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now