Skip to content
uencoder

IP Address

An IP address is the numeric identifier assigned to a network interface—32 bits for IPv4 (four decimal octets) and 128 bits for IPv6 (eight hexadecimal groups)—used for network addressing.

Purpose

It gives every interface on the Internet a unique address so packets can be routed to their destination.

Mechanism

IPv4 is 32 bits in dotted-decimal (192.168.1.1), split into network and host parts (determined by the subnet mask). IPv6 is 128 bits in colon-separated hexadecimal (2001:db8::1) with zero compression. Addresses are allocated by IANA and configured via DHCP or SLAAC.

Use cases

  • Network communication addressing
  • Firewall rules
  • Access control lists
  • Logging and auditing

Examples

  • Input
    192.168.1.1
    Output
    A private IPv4 address

    RFC 1918

Common errors

Confusing public and private IP addresses
Memorize the RFC 1918 ranges: 10/8, 172.16/12, and 192.168/16

Related terms

Related tools

References