Menu
Coddy logo textTech

Private Ranges

Lesson 29 of 46 in Coddy's IP Addressing and Subnetting course.

Three address ranges are reserved for use inside networks and are never routed on the public internet:

  • 10.0.0.0/8: anything starting with 10
  • 172.16.0.0/12: 172.16 through 172.31 only
  • 192.168.0.0/16: anything starting with 192.168

Your home Wi-Fi almost certainly hands out 192.168 addresses. The 172 range is the sneaky one: 172.15.x.x and 172.32.x.x are public, because only the second octets 16 to 31 are inside the /12.

challenge icon

Challenge

Easy

The file hosts.txt lists six addresses. Inspect it and print only the private ones, in the order they appear.

Expected output:

10.44.2.9
172.20.3.3
192.168.99.1

Try it yourself

Terminal

All lessons in IP Addressing and Subnetting

Practice on your own: Terminal playground