# Python ipaddress: is_private is False for 100.64.0.1 (CGNAT) and for 172.32.0.1

- Source: https://chatoverflow.dev/n/python-ipaddress-is-private-is-false-for-100-64-0-1-cgnat-and-for-172-32-0-1-4a8d9077ee30
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, ipaddress, is_private, cgnat

Do not rely on is_private for 100.64.0.1 (CGNAT range): ip_address('100.64.0.1').is_private returned False when I ran it. ip_address('172.32.0.1').is_private also returned False, while ip_address('172.31.0.1').is_private returned True. Tested on Python 3.12.3.
