An Internet Protocol (IP) address is a unique number assigned to any device that connects to the internet or a local network. Think of it as a mailing address for your phone, laptop, smart TV, or IoT gadget—so data knows exactly where to go.
There are two main versions of IP:
-
IPv4: the older standard, with around 4.3 billion possible addresses.
-
IPv6: the newer standard, designed to supply an enormous pool of addresses for today’s vast array of devices.
Devices can use different kinds of IP addresses, including public, private, static, and dynamic.
How IP Addresses Work
Your device uses its IP address to find and retrieve data on the internet or within a local network. An IP address identifies:
-
the host or network, and
-
the location of a device on that network.
IP addresses are allocated in a structured, mathematical way by the Internet Assigned Numbers Authority (IANA). In IPv4, valid addresses span from 0.0.0.0 to 255.255.255.255. Because each address is unique within its scope, devices can reliably connect and exchange data.
Public vs. Private IP Addresses
Public IP address (external)
This is the outward-facing address your home or office uses on the internet—typically assigned to your router by your internet service provider (ISP). All devices behind the router reach the wider internet using this public IP. Knowing it is useful for port forwarding (games, servers, media streaming) or remote access.
Private IP address (internal)
Within your home or office, the router assigns private addresses to devices on the local network. These are reused across countless networks worldwide, conserving IPv4 space. The router translates between private and public addresses (NAT), letting many devices share one public IP.
In IPv6, devices usually receive globally unique addresses; private-style addressing also exists and is called Unique Local Addressing (ULA).
Static vs. Dynamic IP Addresses
Static IP
Manually set (or ISP-assigned) and does not change automatically. The same address persists across sessions—useful for servers or devices that must be reachable at a consistent address.
Dynamic IP
Assigned automatically by DHCP (often your router). Each time a device connects, it may receive a different address from the available pool. Most home networks use dynamic addressing by default.
IPv4 in a Nutshell
IPv4 is one of the foundational internet protocols. First widely used in the early 1980s (e.g., SATNET, 1982), it still routes most internet traffic today. An IPv4 address is a 32-bit number shown as four decimal blocks (0–255), like 203.0.113.42.
Special/Reserved IPv4 Addresses (Examples)
-
0.0.0.0: “default network” / non-routable placeholder.
-
127.0.0.1: loopback; a device’s way to refer to itself.
-
169.254.0.0 – 169.254.255.255: automatically used (APIPA) if DHCP fails.
-
255.255.255.255: limited broadcast to all devices on the local network.
Common Private Ranges for Subnets
Routers can create subnets—smaller networks within a larger one—and assign private addresses so local devices can talk without using the public internet. The widely used private IPv4 ranges are:
-
Class A: 10.0.0.0 – 10.255.255.255
-
Class B: 172.16.0.0 – 172.31.255.255
-
Class C: 192.168.0.0 – 192.168.255.255
(Multicast Class D: 224.0.0.0 – 239.255.255.255; Class E: 240.0.0.0 – 254.255.255.254 reserved for experimental use.)
Internet Addresses and Subnets
IANA allocates large address blocks to organizations, governments, and ISPs. When you go online, your ISP assigns you an address from one of its blocks. In homes and offices, a router typically receives the public IP, then builds a subnet for internal devices with private IPs.
Within any subnet:
-
the network is identified by a subnet mask, and
-
each device (the host) has its own unique host portion.
Conventionally, the first address in a subnet identifies the network itself, and the last is the broadcast address for that subnet.
IPv4 vs. IPv6
As connected devices exploded, IPv4’s address space became too small. IPv6 solves this with 128-bit addresses written in hexadecimal (eight groups like 2001:0db8::1). The address pool is vastly larger—practically inexhaustible—so every device can have its own globally unique address.
How to Find Your IP Address
-
Windows: Open Start → type
cmd→ press Enter → typeipconfig. -
macOS: System Settings/Preferences → Network → select your interface to view details.
-
Mobile (Android/iOS): Settings → Wi-Fi → tap your network → look under Advanced (wording varies by device).
IP Address vs. MAC Address
Both identify devices, but at different layers and for different purposes:
-
MAC address: a hardware (physical) identifier burned into your network card; 6-byte hexadecimal. Lives at the data link layer. Hard to see from outside your local network and normally static.
-
IP address: a logical address for network routing; IPv4 is 4 bytes, IPv6 is 16 bytes. Lives at the network layer and can change (especially with DHCP).
Together, MAC and IP help deliver packets from source to destination. Typically, only devices on your local network can see your MAC address.
Security Risks Tied to IP Addresses
Attackers may try to:
-
infer your approximate location,
-
flood your connection with DDoS traffic,
-
abuse your IP to download illegal content, or
-
use social engineering and online stalking tactics.
Five Ways to Help Protect Your IP
-
Use a VPN to mask your public IP.
-
Use a proxy server when appropriate.
-
Ask your ISP to assign dynamic IPs.
-
Enable a NAT firewall on your router to hide internal devices.
-
Reboot/reset your modem/router to obtain a new IP (with dynamic service).



