0Pricing
Network+ Academy · Lesson

Public, Private, and Loopback Addresses

Tell apart internet-routable, internal, and self-test addresses.

Public, Private, and Loopback Addresses is a free Network+ Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Two Worlds of Addresses

IPv4 addresses fall into two broad groups: public addresses that are routable on the global internet, and private addresses reserved for use inside local networks.

This division lets organizations reuse the same private ranges internally while sharing a small pool of public addresses for internet access.

Public Addresses

A public IP address is unique across the entire internet and is assigned by an ISP (Internet Service Provider) or a regional registry. Web servers, mail servers, and your home router’s internet side use public addresses.

Because public addresses are globally routable, any device on the internet can reach them directly, which is why they are a limited and managed resource.

Private Addresses (RFC 1918)

The standard RFC 1918 defines three private ranges that are never routed on the public internet:

  • 10.0.0.0 - 10.255.255.255 (10.0.0.0/8)
  • 172.16.0.0 - 172.31.255.255 (172.16.0.0/12)
  • 192.168.0.0 - 192.168.255.255 (192.168.0.0/16)

Home and office LANs use these freely without coordination.

Why Private Ranges Repeat Safely

Millions of homes use 192.168.1.0 internally at the same time. This causes no conflict because private addresses stay inside each local network and are never seen on the internet.

The reuse is possible because NAT (Network Address Translation) converts private addresses to a public one at the router boundary, a topic covered in a later course.

Loopback Addresses

The loopback range 127.0.0.0/8 lets a device talk to itself. The most-used address is 127.0.0.1, often named "localhost".

Traffic to a loopback address never leaves the device; it is handled internally by the network stack. This makes loopback ideal for testing software and confirming TCP/IP is installed correctly.

ping 127.0.0.1
Reply from 127.0.0.1: success

APIPA Link-Local

When a device cannot reach a DHCP server, it may assign itself an APIPA address (Automatic Private IP Addressing) from 169.254.0.0/16.

An address starting with 169.254 is a strong sign that DHCP failed. APIPA allows limited local communication but provides no gateway, so the device cannot reach the internet.

Recognizing Each Type

You can classify an address at a glance:

  • Starts with 10, 172.16-31, or 192.168 → private
  • Starts with 127 → loopback
  • Starts with 169.254 → APIPA (DHCP failure)
  • Anything else routable → likely public

This quick triage speeds up troubleshooting enormously.

NAT Ties It Together

NAT is the glue between the private and public worlds. Your router holds a single public address from the ISP and translates the private addresses of all your devices to that one public address for internet traffic.

NAT is the main reason IPv4 survived long past its theoretical exhaustion, letting many devices share one public address.

Private vs Public in Practice

Open your home device settings and you will likely see a private address such as 192.168.1.23. Search "what is my IP" in a browser and you will see your router’s public address instead.

The gap between those two numbers is NAT at work, hiding your internal layout behind one internet-facing address.

Security Side Benefit

Keeping devices on private addresses provides a basic layer of protection. Outside hosts cannot directly initiate connections to a private address, since it is unroutable on the internet.

This is not a substitute for a firewall, but it does mean internal devices are not directly exposed simply by being online.

Reserved Ranges Recap List

Memorize these special ranges for the exam:

  • Private: 10/8, 172.16/12, 192.168/16
  • Loopback: 127.0.0.0/8
  • APIPA: 169.254.0.0/16

Recognizing them instantly tells you whether an address is internal, a self-test, or a sign of DHCP trouble.

Quick Check

Diagnose this address.

Recap

You classified IPv4 address types.

  • Public addresses are globally routable and ISP-assigned.
  • Private (RFC 1918): 10/8, 172.16/12, 192.168/16 — local only.
  • Loopback 127.0.0.1 tests the local stack.
  • APIPA 169.254.x.x signals DHCP failure.
  • NAT lets many private devices share one public address.

Frequently asked questions

Is the “Public, Private, and Loopback Addresses” lesson free?

Yes — the full text of “Public, Private, and Loopback Addresses” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.

What will I learn in “Public, Private, and Loopback Addresses”?

Tell apart internet-routable, internal, and self-test addresses. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Network+ Academy?

No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Public, Private, and Loopback Addresses” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Network+ Academy lesson?

Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Reading a Dotted-Decimal Address
  2. Network Portion vs Host Portion
  3. Address Classes and Their Ranges
  4. Public, Private, and Loopback Addresses
← Back to Network+ Academy