Results 1 to 9 of 9

Thread: All possible IP addresses

  1. #1

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033

    All possible IP addresses

    how can I find out how many global IP addresses are possible?
    I'm bringing geeky back...

  2. #2
    Hyperactive Member DavidHooper's Avatar
    Join Date
    Apr 2001
    Posts
    357

    IP...

    Well an IP is in the format:
    xxx.xxx.xxx.xxx
    where xxx can be between 0 and 255. That is 256 numbers soooooo the answer is 256^4. Which is, ummm, 4294967296.

    In IP v7 or whatever version is next there will be six lots of 3 numbers, ie xxx.xxx.xxx.xxx.xxx.xxx, which gives umpteen million address to every square meter of the planet. lol.
    There are 10 types of people in the world - those that understand binary, and those that don't.

  3. #3
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    281,474,976,710,656

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  4. #4
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    well, you gotta figure, aol is probably taking up 50% of all the IP addresses available now

    hahaha

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  5. #5
    RobIII
    Guest

    Error in calculations....

    Well,

    I'm not a big math-wizz, but there are a few miscalculations:

    First, in an IP-range the last address (x.x.x.255) is always a "multicast" address (or router-adress, don't remember exactly) wich can't be used. So that takes out some possibilities. Also x.x.x.254 is (as I recall) preserved.

    Second, any address containing a 0 for any octet cannot be used.
    (An octet is one x out of x.x.x.x, so there are 4 octets in an IP address).

    Third: there are some internal ranges defined wich cannot be used "global". These start with 10.x.x.x, 172.x.x.x and 192.168.x.x (and even some others as I recall).

    Fourth: the address 127.0.0.1 is used to define "localhost" wich is your own computer.

    Fifth: I need to review my IP-courses as a lot of this knowledge has slipped my mind.

  6. #6
    RobIII
    Guest
    Sorry, "second" wasn't all true, but I do recall something like that...

  7. #7
    Lively Member
    Join Date
    Jun 2001
    Location
    Banana Republic
    Posts
    115
    You forgot one important thing..

    Subnets ???

    Every Ip number can be shared by a sub network using a proxy server. And one of them can again be shared ...and one of them can be shared again and one...

  8. #8
    RobIII
    Guest
    thinktank: You're right, BUT to the outside world it's all the same IP as the one connecting the others to the net...

  9. #9
    Aurilus
    Guest
    If you want to calculate all the possible IP addresses (not excluding the ones mentioned as reserved above ^ ) then maybe you could use this.. what possible use this would be to *anyone* whatsoever is beyond me though!

    Code:
    Dim A as Integer, B as Integer, C as Integer, D as Integer
    Dim F as Integer
    
    F=FreeFile(1)
    Open "IP.Txt" for Output as #F
    For A = 0 to 255
      For B = 0 to 255
        For C = 0 to 255
          For D = 0 to 255
            Print #F, A & "." & B & "." & C & "." & D
          Next D
        Next C
      Next B
    Next A
    Close #F
    - Aurilus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width