An IP address is your device's address on a network. Without one, nothing you send would ever find its way back. Here is the complete beginner's guide: what IP addresses are, how they work, and the types you will meet.
Published 28 November 2026 • SHM Soft
Every time you open a website, send a message, or watch a video, your device talks to another computer somewhere on the internet. For that to work, both sides need an address. Your device needs to know where to send the request, and the other computer needs to know where to send the answer back. That address is the IP address.
IP stands for Internet Protocol, and an IP address is a number that identifies a device on a network. It is the foundation of everything else in networking. In this guide, we explain what an IP address is, how it works, and the different types you will come across.

An IP address is a logical address assigned to a network interface, like your laptop's Wi-Fi card or your phone's mobile connection. It has two jobs. First, it identifies the device, so the network knows which device is which. Second, it gives the device's location, so routers know how to deliver data to it. Think of it like a home address. The street name tells the postman which street, and the house number tells him which house. An IP address works the same way: part of it names the network, and part of it names the device on that network.
The most common version is IPv4. An IPv4 address is 32 bits long, written as four decimal numbers separated by dots, like 192.168.1.10. Each number, called an octet, ranges from 0 to 255. That gives about 4.3 billion possible addresses, which sounded like plenty in the 1980s, when the internet was small. Today it is not enough, which is why IPv6 exists. We will come to that shortly.
An IP address is different from a MAC address, and beginners often mix them up. A MAC address is built into your network card at the factory, and it never changes. An IP address is assigned by the network, and it changes when you move to a different network. Your laptop has the same MAC address at home and at the office, but a different IP address in each place. The MAC address works inside one local network, and the IP address works across networks. Switches use MAC addresses, and routers use IP addresses. Our guide on switch vs router explains that split in more detail.
Public vs private IP addresses
Not all IP addresses are the same. A public IP address is unique on the whole internet, and it is the address the world sees. Your home router has one public address, given to it by your internet provider. A private IP address is used only inside a local network, and the same private address can exist in millions of homes at once. Your laptop, your phone, and your printer probably have private addresses like 192.168.1.10.
Three ranges are set aside for private use: 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. Routers on the internet refuse to forward these addresses, which is what makes them private. Your router translates between the two worlds with NAT, so all your home devices share one public address. That is why the world ran out of IPv4 addresses more slowly than expected: millions of homes share a single public address each.
Static vs dynamic IP addresses
A static IP address is set by hand and never changes. Servers, printers, and routers usually have static addresses, because other devices need to find them at the same address every time. A dynamic IP address is handed out automatically by a DHCP server, and it can change. Your laptop and phone use dynamic addresses, because it does not matter what address they have, as long as they have one. Most home networks use DHCP for everything except the router itself.
IPv4 is the version we have used since the start, with about 4.3 billion addresses. That number was already too small by the 2010s, because every phone, laptop, TV, and smart device needs an address. The internet did not break, because NAT let many devices share one public address, but it was a workaround, not a solution.
IPv6 is the real solution. It uses 128-bit addresses, written in hexadecimal and separated by colons, like 2001:0db8:85a3:0000:0000:8a2e:0370:7334. That gives about 340 undecillion addresses, which is enough for every device on Earth to have its own public address, with plenty to spare. IPv6 also simplifies some things, like automatic configuration, and it drops the need for NAT in most cases. Our full guide on what IPv6 is and why we need it explains the format and the move from IPv4 in detail.
Today, most devices use both. Your phone probably has an IPv4 address and an IPv6 address at the same time. The internet is slowly moving to IPv6, but IPv4 will be with us for many years yet, so you need to understand both.
When you type a website name into your browser, the first thing that happens is a DNS lookup. DNS turns the name, like google.com, into an IP address. Then your computer checks whether that address is on its own network, using its subnet mask. If it is local, your computer talks directly. If it is not local, your computer sends the packet to its default gateway, which is usually your router.
The router looks at the destination address and forwards the packet toward it, hop by hop, until it reaches the right network. Each router only needs to know the next step, not the whole journey. When the reply comes back, it follows the same path in reverse, and your browser shows the page. All of this happens in a fraction of a second, and it all depends on IP addresses being correct at every step.
That is also why a wrong IP address causes such confusing problems. If your computer has the wrong address, the wrong mask, or the wrong gateway, some things work and some do not. The computer can reach local devices but not the internet, or it can reach nothing at all. When you troubleshoot a network, the IP settings are always the first thing to check.

Finding your IP address is easy. On Windows, open the command prompt and type ipconfig. Look for the IPv4 Address under your Wi-Fi or Ethernet adapter. On a Mac, open System Settings, go to Network, and click on your connection. On a phone, look in the Wi-Fi settings under the connected network. What you see there is your private address, the one your home network gave you.
To see your public address, search for what is my IP in any search engine. The result is the address your router shows to the internet. It will be different from the private address on your laptop, and that is normal. It is the address that websites see when you visit them.
Knowing the difference matters. If someone asks for your IP address to help you fix a problem, they usually want the private one, from ipconfig. If a website blocks you or a game server needs your address, it is the public one that matters. Mixing them up is a common source of confusion, and now you know which is which.
Watch on YouTube: What Is an IP Address? Simply Explained #IPAddress #ComputerBasics
Special IP addresses worth knowing
A few addresses have special meanings. The address 127.0.0.1 is the loopback address, which means this computer. If you send data to 127.0.0.1, it goes to your own machine, which is useful for testing. The address 0.0.0.0 means no specific address, and it is used when a device has not got an address yet. The address 255.255.255.255 is the broadcast address, which means every device on the local network.
There are also reserved ranges you should recognise. Addresses starting with 169.254 are link-local addresses, which a device gives itself when it cannot reach a DHCP server. If you see a 169.254 address on a computer, it means DHCP failed, and that is your first clue. Addresses starting with 224 to 239 are multicast addresses, used for one-to-many traffic like video streams and routing protocol Hellos.
These special addresses show up in exams and in real troubleshooting, so it is worth knowing them. You do not need to memorise every range, but knowing loopback, link-local, and broadcast will save you time more than once.
What is an IP address in simple terms?
An IP address is a number that identifies a device on a network, like a home address identifies a house. It lets other devices find it and send data to it, and it lets routers deliver that data to the right place.
What is the difference between IPv4 and IPv6?
IPv4 uses 32-bit addresses written as four decimal numbers, like 192.168.1.10, and has about 4.3 billion addresses. IPv6 uses 128-bit addresses written in hexadecimal, like 2001:db8::1, and has about 340 undecillion addresses, which is effectively unlimited.
What is my IP address?
Your private address is shown by ipconfig on Windows or in your Wi-Fi settings on a phone. Your public address is the one the internet sees, and you can find it by searching for what is my IP. They are usually different, and that is normal.
Can two devices have the same IP address?
Not on the same network. Two devices with the same address cause an IP conflict, and both will have connection problems. On different networks, the same private address can be used, which is why millions of homes all use 192.168.1.1 for their router.
Does my IP address reveal my location?
Only roughly. An IP address can usually show your city or region, because addresses are handed out in blocks to internet providers. It does not show your street address or your name. A VPN can hide even that rough location.
Conclusion
An IP address is the most basic building block of networking. It identifies a device and tells the network where to find it. IPv4 does the job with 32 bits and four dotted numbers, and IPv6 does it with 128 bits and hexadecimal. Public addresses face the internet, private addresses stay inside your home or office, and NAT translates between them.
If you remember one thing, remember this: the address, the subnet mask, and the gateway must all agree. When they do, everything works. When they do not, nothing makes sense until you fix them. That simple check solves more network problems than any other single step.
Related articles:
What Is IPv6 and Why Do We Need It?
The 128-bit successor to IPv4, and why the internet is slowly moving to it.
What Is DHCP? How Dynamic IP Assignment Works
How devices get their IP address automatically, and the DORA process behind it.
What Is Subnetting? A Beginner's Guide
How one network is split into smaller subnets, step by step, with a worked example.
Want a clear price for your project?
Tell us what you need and we will send a free quote with no hidden charges.