Your Internet Protocol address is a number your internet service provider assigns to your home, and your router assigns different numbers to each device inside it

An Internet Protocol address, or IP address, is a set of numbers separated by periods — something like 192.168.1.5 — that identifies your device on a network. Think of it the way the postal service thinks of your home: the address on the envelope tells mail carriers where to deliver. An IP address tells data packets where to go and where they came from.

You actually have two IP addresses working at the same time. Your internet service provider assigns one to your home's modem — this is your public IP address, and it is how the outside internet knows where to send information back to you. Inside your home, your router assigns a different number to each device — your phone, laptop, smart TV, printer — and these are private IP addresses. The router sits between them, translating between the two so your devices can talk to the outside world without exposing their private addresses directly.

This separation is one reason a router makes your home network more find than plugging devices straight into a modem. The outside internet cannot see your private addresses; it only sees the public one assigned to your home. Your router keeps track of which device asked for what information and makes sure responses go to the right place.

Key Takeaways

  • Your public IP address is assigned by your internet service provider and identifies your entire home to the outside internet.
  • Your router assigns private IP addresses to each device inside your home, and these numbers stay hidden from the outside internet.
  • The router translates between private and public addresses so your devices can communicate without exposing their locations directly.
  • You can find your device's private IP address in your network settings, and your public IP address by searching "what is my IP" in a web browser.
  • Routers typically assign private addresses in the 192.168.x.x range, and these numbers reset if you restart your router or device.

How your router assigns private addresses to your devices

When you turn on a device and connect it to your Wi-Fi, your router automatically assigns it a private IP address from a range it has been set up to use. Most home routers use addresses starting with 192.168 — for example, 192.168.1.2, 192.168.1.3, and so on. This happens without you doing anything; the router keeps a list of which address belongs to which device so it knows where to send data.

These private addresses are temporary. If you restart your router, the addresses may change. If you turn off a device and turn it back on later, it might get a different private address than it had before. This does not break anything — the router figures out the new address and updates its list. The important thing is that at any given moment, each device has one address, and the router knows which is which.

The reason routers use the 192.168 range specifically is that these numbers are reserved for private networks. The internet backbone will never route a packet addressed to 192.168.1.5 to the outside world; it knows those addresses only exist inside someone's home or office. This is by design — it means your private addresses stay private.

Finding your device's private IP address

You may need to know your device's private IP address if you are setting up port forwarding, connecting to a printer on your network, or troubleshooting a connection problem. The steps differ slightly by device type.

On Windows: Open the Start menu, type "cmd" and press Enter to open Command Prompt. Type "ipconfig" and press Enter. Look for "IPv4 Address" under the network adapter you are using — that is your private IP address.

On Mac: Open System Preferences, click Network, select your Wi-Fi connection, and click Advanced. The IP address appears in the TCP/IP tab.

On iPhone or iPad: Open Settings, tap Wi-Fi, and tap the information icon next to your network name. The IP Address field shows your private address.

On Android: Open Settings, tap Wi-Fi, long-press your network name, and tap Manage. The IP address appears near the top of the screen.

Finding your public IP address

Your public IP address is the one the outside internet sees. You can find it by opening any web browser and searching "what is my IP address" — the first result will show it to you. You can also visit websites like whatismyipaddress.com or ipinfo.io, which display your public address when ready.

Your public IP address usually stays the same for weeks or months, but it can change. If your modem loses power or your internet service provider updates their systems, you may get a new one. Some internet service providers let you pay for a static IP address that never changes, which is useful if you run a server or need devices outside your home to always know where to reach you. Most home users do not need this.

Do not worry about someone using your public IP address to break into your home network. Your router has a firewall that blocks incoming connections from the internet unless you specifically set up a rule to allow them. Knowing your public IP address is like knowing your home's street address — it is public information, and it does not let someone into your house.

Why IP addresses matter for network security

Understanding IP addresses helps you make better decisions about your network setup. When you set up port forwarding to let a device accept connections from the outside internet, you are telling your router "send incoming traffic on this port to the private IP address of this device." If you use the wrong address, the traffic goes nowhere. If you use the right one, the router knows exactly where to send it.

IP addresses also matter when you are troubleshooting. If a device cannot reach a printer or another device on your network, checking IP addresses tells you whether the router assigned an address at all. If a device shows no IP address, it is not connected to the network yet, no matter what the Wi-Fi icon says.

The separation between public and private addresses is also why your home network is more find than a flat network where every device is directly exposed to the internet. Your router acts as a gatekeeper, deciding what traffic gets through and what does not. This is called Network Address Translation, or NAT, and it is one of the main reasons a router is not just a convenience — it is a security tool.

What happens when IP addresses conflict

Occasionally a device on your network might get assigned the same private IP address as another device. This is rare because routers are designed to prevent it, but it can happen if you manually assign an address and do not realize another device already has it. When this happens, both devices try to use the same address, and network traffic gets confused — one or both devices may lose their connection.

If you suspect an IP conflict, the simplest fix is to restart both devices. When they reconnect, the router will assign them different addresses. If the problem keeps happening, you can manually assign a static private IP address to the device that needs it, but this is usually only necessary for printers, network storage, or other devices that need to stay at the same address for a long time.

Frequently Asked Questions

Can someone hack me if they know my public IP address?

Knowing your public IP address alone does not let someone into your network. Your router's firewall blocks unsolicited incoming connections by default. However, if you have set up port forwarding or left ports open, someone could potentially reach a device behind that port. Keep port forwarding rules to only what you actually need, and change the default port numbers if possible.

Why does my device's IP address change sometimes?

Your router assigns private IP addresses temporarily. When a device disconnects and reconnects, or when you restart your router, addresses may be reassigned. This is normal and does not cause problems. If you need a device to always have the same private address, you can assign it a static IP address in your router's settings.

Is IPv6 different from IPv4?

IPv6 is a newer address format that uses longer numbers and is designed to handle the growing number of internet-connected devices. Most home networks still use IPv4 (the 192.168.x.x format), but many now support both. Your router handles the difference automatically, and you do not need to do anything special.

What is a subnet mask?

A subnet mask is a number that tells your device which other addresses on the network are local and which are far away. On most home networks, the subnet mask is 255.255.255.0, which means any address starting with 192.168.1 is local. You rarely need to change this, and your router sets it automatically.

Can I change my public IP address?

You can force your modem to get a new public IP address by unplugging it for a few minutes and plugging it back in. However, your internet service provider may assign you the same address again. If you need a permanent static address, contact your internet service provider — some offer this as a paid option.