IPv4 is the address system that lets your device find and talk to other devices on the internet

Every device that connects to the internet needs an address, the same way your house needs a street address for mail to arrive. Internet Protocol Version 4 (IPv4) is the system that creates and manages those addresses. When you connect to the internet, your device gets assigned an IPv4 address — a string of four numbers separated by dots, like 192.168.1.5. That address is how other devices know where to send information back to you.

IPv4 has been the standard since 1983. It was designed when the internet was much smaller, and the people who built it did not expect we would run out of addresses. But we almost have. There are only about 4.3 billion possible IPv4 addresses, and we have more devices than that now. Despite this limit, IPv4 still handles most internet traffic today, and your device almost certainly uses it right now, even if it also uses the newer IPv6 system alongside it.

Key Takeaways

  • An IPv4 address is four numbers separated by dots (like 192.168.1.100) that identifies your device on the internet so other devices can send information to you.
  • Your device gets a temporary IPv4 address from your internet service provider or your home router, and that address changes periodically.
  • IPv4 addresses are divided into public addresses (visible on the internet) and private addresses (used only inside your home network).
  • IPv4 has a hard limit of about 4.3 billion addresses, which is why IPv6 was created, but IPv4 still carries most internet traffic.

How an IPv4 address is structured

An IPv4 address has four sections, called octets, separated by periods. Each section is a number between 0 and 255. So 192.168.1.5 breaks down as: 192, 168, 1, and 5. That structure is fixed — there is no other way to write it.

The first one or two sections usually identify the network you are on. The last one or two sections identify your specific device within that network. When you send data to another device, the internet uses the first parts of the address to route your message to the right network, then uses the last parts to deliver it to the right device on that network. It is similar to how a postal address works: the city and state narrow down the location, and the street and house number pinpoint the exact house.

Public and private IPv4 addresses

Not all IPv4 addresses work the same way. Public IPv4 addresses are visible on the internet. When you visit a website, the website's server can see your public IP address (or at least the one your internet service provider assigned to your home). Your internet service provider controls which public addresses are assigned to which customers.

Private IPv4 addresses only work inside your home network. Your router assigns these to your devices — your laptop, phone, smart TV, printer. These addresses start with 10, 172, or 192 and are never routed across the public internet. If you look at your device's network settings, the address you see there is almost always a private address. The router translates between your device's private address and your home's public address when you send data out to the internet. This translation is called Network Address Translation (NAT), and it is one reason IPv4 has lasted as long as it has despite the address shortage.

Where your IPv4 address comes from

Your internet service provider assigns a public IPv4 address to your home router. That address is not permanent — it changes periodically, sometimes every few days or weeks, depending on your provider's setup. You do not need to do anything to get a new one; it happens automatically.

Inside your home, your router assigns private IPv4 addresses to each of your devices. Your router does this using a system called DHCP (Dynamic Host Configuration Protocol). When your phone or laptop connects to your home Wi-Fi, it sends out a request, and your router automatically gives it an available private address from a pool it manages. That address is temporary too — your device may get a different private address the next time it connects, though routers often try to give the same device the same address if possible.

If you run a web server or host a service that needs a permanent address, you can request a static IPv4 address from your internet service provider, though this usually costs extra and is not common for home internet users.

Why IPv4 is running out of addresses

IPv4 was designed in 1983 when computers were rare and expensive. The system allows for 2 to the 32nd power possible addresses — about 4.3 billion. In the 1990s, that seemed like more than enough. But smartphones, tablets, smart home devices, and internet-connected appliances changed everything. Now there are more devices than there are IPv4 addresses.

The internet has managed this shortage through a few workarounds. Network Address Translation lets millions of devices share a single public address. Large organizations and internet service providers also hold blocks of addresses and reuse them efficiently. But these are temporary solutions. The real answer is IPv6, the newer protocol that allows for 340 undecillion addresses — a number so large it is difficult to grasp. However, switching the entire internet from IPv4 to IPv6 takes time. Many devices, networks, and services still only support IPv4, so both systems run in parallel.

What happens when you look up your IPv4 address

If you search "what is my IP address" in a search engine, you will see your public IPv4 address — the one your internet service provider assigned to your home. That is the address websites see when you visit them. If you want to see your device's private address, you need to look in your device's network settings.

On Windows, open Command Prompt and type ipconfig. On Mac or Linux, open Terminal and type ifconfig or ip addr. You will see a list of all your network connections and their private IPv4 addresses. Your home router usually has its own private address too — often 192.168.1.1 or 192.168.0.1 — and you can type that address into a web browser to access your router's settings.

IPv4 versus IPv6: why both exist

IPv6 was created specifically to solve the address shortage. It uses 128-bit addresses instead of IPv4's 32-bit addresses, which creates vastly more possible addresses. An IPv6 address looks different — it uses hexadecimal notation and colons, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334.

Despite its advantages, IPv6 adoption has been slow. Many internet service providers, routers, and websites still do not fully support it. Most devices now support both IPv4 and IPv6 at the same time, using whichever one works for each connection. Your device might use IPv4 to reach one website and IPv6 to reach another. This dual-stack approach keeps the internet working while the transition happens gradually. Full migration to IPv6 will take years, possibly decades.

Frequently Asked Questions

Can someone find my location from my IPv4 address?

Your public IPv4 address reveals your internet service provider and the general region you are in — usually your city or a nearby area — but not your exact street address or home location. Websites can see this information, and it is used for things like showing you local search results or blocking access from certain countries. Your private IPv4 address (the one inside your home network) is not visible to the internet at all.

Why does my IPv4 address change?

Your internet service provider assigns addresses temporarily rather than permanently. This lets them reuse addresses when customers disconnect and frees up addresses for new customers. The change usually happens every few days to a few weeks, depending on your provider's settings. If you need a permanent address, you can contact your provider about a static IP, though this is uncommon for home internet.

What is the difference between my public and private IPv4 address?

Your public address is assigned by your internet service provider and is visible to websites and services on the internet. Your private address is assigned by your home router and only works inside your home network. Your router translates between them so your devices can communicate with the internet without exposing their private addresses.

Do I need to do anything to get an IPv4 address?

No. Your internet service provider automatically assigns a public address to your router, and your router automatically assigns private addresses to your devices. This happens in the background without any action from you. The only time you might need to do something is if you want a static (permanent) address, which requires contacting your provider.

Will IPv4 disappear completely?

Not in the near future. IPv4 and IPv6 will likely coexist for many more years. Even though IPv6 solves the address shortage, switching the entire internet over would require updating billions of devices and services. Most networks now support both protocols, and the transition will continue gradually as older equipment is replaced.