An IP address has four numbers separated by periods, each ranging from 0 to 255
An IP address is written as four numbers with periods between them, like 192.168.1.5. Each of those four numbers is called an octet because it represents eight binary digits. The numbers can be anything from 0 to 255, which means there are 256 possible values for each position.
This format is called IPv4, and it has been the standard for decades. When you connect a device to your home network or the internet, your device gets assigned one of these four-number addresses so other devices know where to send information. Your router, your phone, your computer — each one has its own IP address on your network.
The reason each number maxes out at 255 comes down to how computers count in binary. Eight binary digits can represent 256 different values (0 through 255). Four octets of eight digits each give you enough combinations to create billions of unique addresses, which was plenty when IPv4 was designed in the 1980s.
Key Takeaways
- Every IP address has exactly four numbers separated by periods, each between 0 and 255.
- The first one or two numbers usually identify your network, while the last one or two identify your specific device.
- Your home router typically assigns addresses starting with 192.168 or 10, which are reserved for private networks.
- Knowing your device's IP address helps you troubleshoot connection problems and find your router's settings page.
What each number in the address represents
The four numbers in an IP address are not all the same job. The first number or two identify which network you are on. The last number or two identify which device on that network you are. Your router decides where the split happens based on something called a subnet mask.
On a typical home network, your router uses a subnet mask of 255.255.255.0. This means the first three numbers identify your home network, and the last number identifies your device. So if your address is 192.168.1.5, the 192.168.1 part is your network, and the 5 is your device. Your router itself is usually 192.168.1.1, and your phone might be 192.168.1.42.
This split matters because it tells your router whether a message is going to a device on your home network or somewhere out on the internet. If the first three numbers match, the router knows to send it directly to that device. If they do not match, the router knows to send it out through your internet connection instead.
Private addresses versus public addresses
Not all IP addresses are the same. Some are private — they only work inside your home network and cannot be reached from the internet. Others are public — they are unique across the entire internet and can be reached from anywhere.
Your home router assigns private addresses to your devices. These always start with 10, 172, or 192.168. Your internet service provider assigns a public address to your router's internet connection. That public address is what websites and services see when you connect to them. You can find your public IP address by searching "what is my IP" in any browser.
The reason for private addresses is security and efficiency. Billions of devices exist, but there are not billions of unique public addresses. Private addresses let you have a network of dozens of devices at home, but only one public address needs to go out to the internet. Your router translates between the two — a process called Network Address Translation or NAT.
How your router assigns addresses to your devices
When you connect a new device to your home network, your router automatically hands it an IP address. This happens through a system called DHCP (Dynamic Host Configuration Protocol). Your router has a pool of addresses it can give out — usually something like 192.168.1.2 through 192.168.1.254 — and it picks one for each device that connects.
The address is not permanent. Your router leases it to the device for a set amount of time, usually 24 hours. When the lease is about to expire, the device asks for a renewal, and the router usually gives it the same address back. If a device disconnects and does not come back, the router recycles that address and can give it to a new device.
This automatic system is why you do not have to manually configure anything. It also means your devices might get a different address if you restart your router or if a device has been offline for a while. If you need a device to keep the same address — like a printer or a security camera — you can set up a static IP address in your router's settings, which reserves a specific address just for that device.
Finding your device's IP address on different systems
On Windows, open the Command Prompt and type ipconfig, then press Enter. Look for the line that says "IPv4 Address" under your network connection. That is your device's private IP address on your home network.
On Mac or Linux, open Terminal and type ifconfig or ip addr. Look for the line that starts with "inet" — that is your IP address.
On an iPhone, go to Settings, tap Wi-Fi, then tap the network you are connected to. Your IP address appears under the network details. On Android, go to Settings, tap About Phone, then tap Status. Your IP address is listed there.
If you need your router's IP address to access its settings page, it is almost always 192.168.1.1 or 10.0.0.1. Type one of those into your browser's address bar. If neither works, check the sticker on the bottom or back of your router — it usually lists the address there.
Why IP addresses matter for your home network security
Understanding IP addresses helps you spot problems and control access to your network. If a device is not connecting, you can check whether it got an address assigned. If you want to block a device from your network, you can identify it by its IP address. If you are setting up port forwarding to let someone access a device remotely, you need to know that device's private IP address.
Your router's settings page — the one you access at 192.168.1.1 — is where you change your Wi-Fi password, update firmware, and set security rules. Knowing how to find that page and understanding what the addresses mean puts you in control of what is happening on your network.
Frequently Asked Questions
Can two devices on my home network have the same IP address?
Not normally. Your router assigns each device a unique address from its pool. If two devices somehow end up with the same address, they will have connection problems and may not be able to reach each other. This is rare with DHCP, but it can happen if you manually set static addresses and make a mistake.
What does the last number in an IP address do?
On a typical home network with a 255.255.255.0 subnet mask, the last number identifies your specific device. The address 192.168.1.5 means device number 5 on the 192.168.1 network. The last number can be anything from 1 to 254 (0 and 255 are reserved for network and broadcast addresses).
Why do some devices get addresses starting with 10 instead of 192.168?
Both are private address ranges that routers can use. Some routers default to 10.0.0.x, others to 192.168.1.x. It does not matter which one your router uses — they work the same way. You can usually change it in your router's settings if you want, but there is no reason to unless you have a specific reason.
Is my public IP address the same as my router's IP address?
No. Your router has two addresses: a private one (like 192.168.1.1) that devices on your home network use to reach it, and a public one that the internet sees. You can find your public address by searching "what is my IP" in a browser. Your internet service provider assigns and can change your public address.
What happens if I manually set a device to an IP address outside my network range?
The device will not be able to communicate with other devices on your network or reach the internet. Your router uses the subnet mask to determine whether an address belongs to your network. If a device's address does not match, the router will not route traffic to it. Stick with addresses in your router's assigned range.