CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: IP Addresses

  1. #1
    Join Date
    Mar 2007
    Posts
    45

    IP Addresses

    I'm a little confused about how ip addresses are assigned.

    When your average home user signs up to an ISP, they are assigned a unique IP address, which will be from Class C. But Class C only has 2 million networks? That would be nowhere near enough for all the people around the world. How does this work?

    Secondly, a class C network has 255 hosts, does that mean that if your ISP assigned you an IP address of say 220.255.255, you would own all addresses from 220.255.255.1 to 220.255.254 ?
    Last edited by wheelie; December 27th, 2011 at 07:13 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    California
    Posts
    4,556

    Re: IP Addresses

    Please read about network address translation (NAT), which allows a large number of private IP addresses to hide behind a single public IP address. One source of information on NAT is http://en.wikipedia.org/wiki/Network...ss_translation

    NAT doesn't answer all your questions, but it's a start.

    Mike

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

Featured