Public vs Private IP - IPv4

The Internet Assigned Numbers Authority (IANA) established certain blocks of IPv4 IP addresses for the use of private (LAN) and public (Internet) addresses.

  • Private IP
    Can only allow certain values

    | IP Range | Discription | | --- | --- | | 10.0.0.0 - 10.255.255.255 (10.0.0.0/8) | Class A. In big networks | | 172.16.0.0 - 172.31.255.255 (172.16.0.0/12) | Class B. e.g:- AWS default VPC IP range | | 192.162.0.0 - 192.162.255.255 (192.162.0.0/16) | Class C. e.g:- Home networks |

  • Public IP
    All the rest of the IPs in the internet

Next: https://dixon.hashnode.dev/aws-default-vpc