An IP address is a unique number assigned to a device or network connection so data can be sent to it and replies can come back. IPv4 addresses are 32-bit numbers written as four decimal numbers from 0 to 255, such as 8.8.8.8, giving about 4.3 billion addresses. IPv6 addresses are 128-bit numbers written in hexadecimal, giving about 340 undecillion addresses.
Key takeaways
- An IP address identifies a network connection, not a person: it lets routers deliver packets to the right device and send replies back.
- IPv4 has about 4.3 billion addresses and is running out; IPv6 has about 340 undecillion and is the long-term replacement.
- Your public IP reveals your provider and approximate location, while private addresses such as 192.168.1.1 only work inside your own network.
Every time you load a website, send an email or stream a video, your device and the other end need to find each other. The number that makes that possible is an IP address — the internet's version of a mailing address.
What is an IP address?
An IP address is a unique number assigned to a device or network connection so that data can be sent to it and replies can come back. IP stands for Internet Protocol, the set of rules that moves packets of data between networks.
The analogy is a letter. A letter needs a destination address and a return address. A data packet needs the same: a destination IP address so routers know where to send it, and a source IP address so the reply knows where to go. Without both, the internet could not route anything.
One detail matters: an IP address identifies a network connection, not a person or a building. The same address can be shared by many devices behind a router, and it can change over time. Learn how to check your own with our what is my IP tool.
How does an IP address work?
When your computer sends a message to another computer, it must specify the recipient's IP address and include its own, so the second computer can reply. Routers read the destination address and forward the packet hop by hop until it arrives.
Each address has two parts: a network part, which routers use to find the right network, and a host part, which picks out one device on that network. The boundary between the two is set by the subnet mask, which is why two devices on the same home network share the first part of their address and differ in the last part.
Domain names sit on top of this system. You type a name such as example.com, and the Domain Name System (DNS) translates it into the IP address of the server. The IP address is what the network actually uses; the name is for humans.
What is IPv4?
IPv4 is the original version of the Internet Protocol, defined in RFC 791 in September 1981. It uses 32-bit addresses, written as four decimal numbers separated by dots. Each number stands for 8 bits, so it runs from 0 to 255.
IPv6 is defined in RFC 8200, which states that IPv6 increases the address size from 32 bits to 128 bits. Khan Academy's guide to IP addresses explains the same math in plain language.
A familiar example is 8.8.8.8, Google's public DNS resolver. Another is 192.168.1.1, the address many home routers use inside a local network. With 32 bits there are 2 to the power of 32 possible addresses: 4,294,967,296 in total.
That sounded like plenty in 1981. It turned out to be far too few for every phone, laptop, server and smart device on earth. The pool of unallocated IPv4 addresses ran out years ago, which is why workarounds such as Network Address Translation (NAT) — sharing one public address among many devices — became standard, and why IPv6 was created.
What is IPv6?
IPv6 is the successor to IPv4, defined in RFC 8200. It increases the address size from 32 bits to 128 bits, giving about 340 undecillion addresses: 340,282,366,920,938,000,000,000,000,000,000,000,000. That is enough for every device imaginable, with room to spare.
An IPv6 address is written as eight groups of four hexadecimal digits separated by colons, such as 2001:0db8:0000:0042:0000:8a2e:0370:7334. A run of zero groups can be shortened to "::" once per address, so 2001:db8::1 is the same address as 2001:0db8:0000:0000:0000:0000:0000:0001.
Beyond size, IPv6 simplifies configuration: devices can form their own address from information advertised by a router, a process called Stateless Address Autoconfiguration (SLAAC), and it removes the need for NAT. Most networks now run both versions side by side, a setup called dual-stack, while the transition continues.
IPv4 vs IPv6: what is the difference?
The main difference is address capacity, but format, configuration and routing differ too. Here is the comparison that matters in practice.
| Feature | IPv4 | IPv6 |
|---|---|---|
| Address size | 32 bits | 128 bits |
| Written as | Four decimal numbers, 0 to 255, with dots | Eight groups of hex digits, with colons |
| Example | 8.8.8.8 | 2001:db8::1 |
| Possible addresses | 4,294,967,296 | About 3.4 x 10 to the power of 38 |
| Defined in | RFC 791 (1981) | RFC 8200 (2017) |
| NAT needed? | Usually, to share addresses | No, every device can have its own |
| Configuration | Usually DHCP | SLAAC or DHCPv6 |
What is the difference between a public and a private IP address?
Your public IP address is the one your internet provider gives your connection. It is the address the rest of the internet sees, and it is how websites and services reply to you. Every device in your home usually shares the same public address through your router.
A private IP address identifies a device inside your own network. RFC 1918 reserves three ranges for this: 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. Your laptop might be 192.168.1.5 and your printer 192.168.1.20, but neither address works directly from the internet.
NAT is the bridge between the two. Your router rewrites outgoing packets to use its public address, remembers which device sent them, and rewrites the replies back. That is why dozens of devices can share one public IPv4 address, and why an attacker who learns your private address alone cannot reach your devices from outside.
What is a static vs a dynamic IP address?
A static IP address stays the same. Servers, business services and devices that others need to find reliably usually have one, because a changing address would break bookmarks, DNS records and allowlists.
A dynamic IP address is assigned from a pool when you connect, and it can change. Most home connections work this way: your provider gives you an address from its range, and it may give you a different one next time you reconnect. This is normal and usually invisible to you.
Neither is inherently safer. A static address is easier to target and to blocklist, but also easier to monitor. A dynamic address changes, but your provider still knows who had which address at which time.
How do I find my IP address?
To find your public address, use a what-is-my-IP tool or search for your IP address: the page will show the address it sees. To find your private address, check your device's network settings.
On Windows, open Settings, then Network and Internet, then your connection's properties, or run ipconfig in a command prompt. On macOS, open System Settings, then Network, then your connection. On a phone, look under Wi-Fi settings for your connected network. Your router's admin page, usually at 192.168.1.1 or 192.168.0.1, lists every device on your network and its private address.
If your public address changes between checks, you have a dynamic address. If it stays the same for weeks, it may be static, or your provider may simply reassign the same address each time. Our guide to securing your Wi-Fi explains how to protect the network behind that address.
What does an IP address reveal about you?
A public IP address reveals your internet provider, its network number, and an approximate location: usually the country, and often a region or a city. That location is frequently your provider's, not yours, so it can be wrong by a large margin.
It does not by itself reveal your name, street address, phone number or identity. What it can do, combined with other data, is help build a profile: a website can log that the same address visited repeatedly, and an advertiser can combine it with cookies and account data.
That is the main privacy trade-off. A VPN hides your real IP address from the sites you visit, replacing it with the VPN server's address. It does not make you anonymous: the VPN provider can see your real address, and any service you log into still knows who you are.
How do IP addresses relate to security?
IP addresses are central to both attacks and defenses. Attackers scan ranges of addresses looking for open ports and vulnerable services, which is why firewalls and patching matter. Defenders use IP addresses in allowlists, blocklists and logs to spot unusual access, such as a login from a country the user has never visited.
That is also why IP-based blocking is limited. Addresses change, attackers rent new ones constantly, and a shared address may belong to thousands of innocent users. A login from an unfamiliar IP is a signal to investigate, not proof of an attack on its own.
For your own security, keep your router's firmware updated, change its default admin password, and do not expose services such as remote desktop directly to the internet. If you need remote access, use a VPN or a zero-trust service instead of opening a port.
The bottom line
An IP address is a number that lets data find your device and find its way back. IPv4's 4.3 billion addresses were not enough, so IPv6's 340 undecillion are taking over, while private addresses and NAT keep your home network running in the meantime.
Check your own public address with the free what is my IP tool.
Look up any unfamiliar address with the WHOIS lookup to see who owns it.
Frequently asked questions
What is an IP address in simple terms?
It is the mailing address for a device on a network. When your computer asks a website for a page, it includes its own IP address so the server knows where to send the reply, just as a letter needs a return address.
What is the difference between IPv4 and IPv6?
IPv4 uses 32-bit addresses written as four numbers from 0 to 255, giving about 4.3 billion addresses. IPv6 uses 128-bit addresses written in hexadecimal, giving about 340 undecillion addresses. IPv6 was created because IPv4 ran out of room.
What is my IP address?
Your public IP address is the one your internet provider assigns to your connection. You can see it with a what-is-my-IP tool or by searching for your IP address. It may change over time if your provider uses dynamic addressing.
Is my IP address private information?
It is not secret, but it does reveal your internet provider and an approximate location, usually your country and often a region or city. It does not by itself reveal your name, street address or identity.
What is a private IP address?
A private IP address identifies a device inside a local network, such as your home Wi-Fi. Common ranges are 192.168.0.0 to 192.168.255.255, 10.0.0.0 to 10.255.255.255 and 172.16.0.0 to 172.31.255.255. These addresses are not reachable directly from the internet.
What is the difference between a static and a dynamic IP address?
A static IP address stays the same, which suits servers and services that others need to find reliably. A dynamic address is assigned from a pool and can change, which is how most home connections work.
Can someone track me with my IP address?
An IP address alone gives only an approximate location and your provider's identity. Combined with other data, such as login records or tracking cookies, it can contribute to profiling, which is why some people use a VPN. A VPN hides your real IP from the sites you visit, but the VPN provider can see it instead.
Does changing my IP address make me anonymous?
No. Changing your IP address does not hide your identity from services you log into, and your provider still knows who you are. It changes only the address other sites see, and only until the next change.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against RFC 791 for IPv4, RFC 8200 for IPv6 and RFC 1918 for private addressing.
How we write and fact-check →