---
id: "ipv4"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["internet", "pii"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/ipv4"
---

# IPv4 address (`ipv4`)

32-bit address of Internet Protocol version 4 (RFC 791), written in dotted-decimal notation as four numbers from 0 to 255, such as 192.0.2.1. The regexp rejects parts with leading zeros (192.0.2.01), because some software reads them as octal numbers. Private networks use 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 (RFC 1918), and 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 are reserved for documentation (RFC 5737).

- Parent datatype: `ipaddr`
- Personal data (PII): yes
- Categories: Internet (internet), Personally identifiable information (pii)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])){3}$
```

## Examples

- `192.0.2.1` — Documentation range TEST-NET-1 (RFC 5737)
- `198.51.100.42` — Documentation range TEST-NET-2 (RFC 5737)
- `203.0.113.255` — Documentation range TEST-NET-3 (RFC 5737)
- `256.1.1.1` (invalid example) — The first part is larger than 255
- `192.0.2` (invalid example) — Three parts instead of four
- `192.0.2.01` (invalid example) — A part with a leading zero

## Mappings

- autotype: `ipv4`
- cdm: `means.identity.IP4Address`
- dpv: `pd:IPAddress`
- fta: `IPADDRESS.IPV4`
- purview: `IP Address v4`

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `ipv4` (data, `ext/ext_internet.yaml`)

## Supported by tools

- `alteryxdesignercloud`
- `autotype`
- `awscomprehend`
- `datahub`
- `dataiku`
- `dataprep`
- `dataprofiler`
- `detectsecrets`
- `fta`
- `greatexpectations`
- `ibmknowledgecatalog`
- `metacrafter`
- `metacrafterpro`
- `metadata-guardian`
- `microsoftpurview`
- `soda`
- `sqldatacatalog`
- `talend`

## Translations

- ru: IPv4-адрес: 32-битный адрес протокола IPv4: четыре числа от 0 до 255 через точку, например 192.0.2.1.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/IPv4>
- doc: <https://www.rfc-editor.org/rfc/rfc791>
- doc: <https://www.rfc-editor.org/rfc/rfc5737>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/ipv4.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/ipv4.yaml>
