Determine if Address is Private or Public

Beginner Identify

Question

For each of the following IP addresses, determine whether it is a private (RFC 1918) address or a public routable address: 192.168.1.1, 8.8.8.8, 10.0.0.1, 172.16.0.1, 203.0.113.5.

Given

{
  "addresses": [
    "192.168.1.1",
    "8.8.8.8",
    "10.0.0.1",
    "172.16.0.1",
    "203.0.113.5"
  ]
}

Answer

{
  "results": [
    {
      "ip": "192.168.1.1",
      "type": "private"
    },
    {
      "ip": "8.8.8.8",
      "type": "public"
    },
    {
      "ip": "10.0.0.1",
      "type": "private"
    },
    {
      "ip": "172.16.0.1",
      "type": "private"
    },
    {
      "ip": "203.0.113.5",
      "type": "public"
    }
  ]
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

Step 1: Know the RFC 1918 private address ranges

RFC 1918 defines three private address blocks that are not routed on the public internet:

Range CIDR notation Addresses
10.0.0.0 − 10.255.255.255 10.0.0.0/8 16,777,216
172.16.0.0 − 172.31.255.255 172.16.0.0/12 1,048,576
192.168.0.0 − 192.168.255.255 192.168.0.0/16 65,536

Any address outside these ranges (and not reserved for other special purposes) is public.

Step 2: Evaluate each address

192.168.1.1 — First octet 192, second octet 168. Matches 192.168.0.0/16. → Private

8.8.8.8 — First octet 8. Does not match any private range. This is Google's public DNS. → Public

10.0.0.1 — First octet 10. Matches 10.0.0.0/8. → Private

172.16.0.1 — First octet 172, second octet 16. Check: 172.16 falls within 172.16–172.31. → Private

172.16.0.1 in binary (2nd octet): 00010000 = 16 ✓ (range is 16–31)

203.0.113.5 — First octet 203. Does not match any private range. Note: 203.0.113.0/24 is an IANA documentation range (TEST-NET-3), not RFC 1918 private — it is technically reserved but the concept of public vs. private still applies; it is not a private RFC 1918 address. → Public

Step 3: Summary table

IP Address RFC 1918 Range Type
192.168.1.1 192.168.0.0/16 Private
8.8.8.8 — Public
10.0.0.1 10.0.0.0/8 Private
172.16.0.1 172.16.0.0/12 Private
203.0.113.5 — Public

Private addresses require NAT to communicate with the public internet and are reused across many different networks.

Related Terms

More Identify Worksheets