Your device gets an IP address from your internet service provider or your local network
Every device that connects to the internet — your phone, laptop, printer, smart TV — needs an IP address, a unique number that identifies it on a network. That address comes from one of two places: your internet service provider assigns one to your home network, or your home router assigns one to each device inside your network. The method depends on whether you're connecting to the internet itself or just to devices in your home.
Most home users never see this happen because it occurs automatically in the background. Your device sends out a request, a server responds with an address, and you're connected — all in seconds. Understanding how this works helps you troubleshoot connection problems, set up devices correctly, and recognize when something isn't working the way it should.
Key Takeaways
- Your internet service provider assigns a public IP address to your home router; your router then assigns private IP addresses to each device inside your home.
- Most devices receive IP addresses automatically through DHCP, a system that hands out temporary addresses and reclaims them when devices disconnect.
- Static IP addresses stay the same and are useful for devices like printers or security cameras that you need to find at the same address every time.
- Private IP addresses (starting with 192.168, 10, or 172.16) only work inside your home network; public IP addresses are unique across the entire internet.
- You can find your device's IP address in your network settings, and your router's settings page shows which addresses have been assigned to which devices.
Public IP addresses: what your internet service provider assigns
Your internet service provider gives your home router a public IP address — a number unique across the entire internet. This is how websites and online services know where to send data back to you. When you visit a website, that site's server logs your public IP address. This is also the address that appears in your location data when services try to figure out roughly where you are.
Your public IP address usually changes every few months or when you restart your modem, depending on your provider's setup. Some providers assign the same address for years; others rotate them regularly. You can see your public IP address by searching "what is my IP" in any search engine, or by visiting a site like whatismyipaddress.com. The address you see there is what the rest of the internet knows you as.
If you have a business or need your address to stay the same — for example, to run a server or access your home network remotely — you can pay your internet service provider for a static public IP address that doesn't change. This costs extra, usually between $10 and $20 per month depending on your provider.
Private IP addresses: what your router assigns to devices inside your home
Inside your home network, your router assigns private IP addresses to each device. These addresses only work within your home network; they're not visible to the internet. Private addresses always start with 192.168, 10, or 172.16 followed by other numbers. Your phone might be 192.168.1.5, your laptop 192.168.1.10, your printer 192.168.1.20.
Private addresses let devices inside your home find and talk to each other without going through the internet. When you print a document, your laptop finds your printer using its private address. When you stream video from your phone to a smart TV, they communicate using private addresses. Your router acts as a translator, taking data meant for the internet and attaching your public IP address so the outside world knows where to send responses.
This separation — private addresses inside, one public address facing out — is called Network Address Translation or NAT. It's one reason your home network is more secure than if every device had its own public address. Devices on the internet can't directly reach your devices; they have to go through your router first, which acts as a gatekeeper.
DHCP: how devices get addresses automatically
Most devices don't have a static address assigned to them. Instead, your router uses a system called DHCP (Dynamic Host Configuration Protocol) to hand out addresses automatically. When your phone connects to your home Wi-Fi, it sends out a request. Your router responds with an available private IP address and tells the phone how long it can use that address — usually 24 hours or a few days.
When the time expires, the device can ask for a renewal, and the router usually gives it the same address back. If the device disconnects without renewing, the router reclaims the address and can give it to another device. This is why your devices usually get the same private address each time you connect, even though the address isn't permanently locked to them.
DHCP is why you rarely have to manually type in an IP address. It's also why your devices sometimes take a few seconds to connect to Wi-Fi — they're going through the DHCP process in the background. If a device can't reach your router's DHCP server, it will assign itself a temporary address starting with 169.254, which means it's connected to the network but can't talk to the internet or other devices.
Static IP addresses: when you need a device at the same address
Some devices need to stay at the same private IP address every time they connect. Security cameras, network printers, and home servers are common examples. If your printer's address keeps changing, you'll have trouble finding it when you want to print. If your security camera's address changes, your phone app might lose track of it.
You can set a static private IP address in two ways. The first is to configure the device itself — go into its network settings and manually type in an IP address instead of letting DHCP assign one. The second is to tell your router to always give that device the same address. This is called DHCP reservation or static DHCP, and you set it up in your router's settings page by finding the device and locking its address.
Static addresses are only for devices inside your home network. For a public static address that works across the internet, you need to contact your internet service provider and pay for that service.
Finding your device's IP address
On Windows, open Command Prompt and type ipconfig, then press Enter. Look for "IPv4 Address" — that's your private IP address. On Mac or Linux, open Terminal and type ifconfig or ip addr. On an iPhone, go to Settings > Wi-Fi, tap the network name, and scroll down to see the IP address. On Android, go to Settings > About Phone > Status or Network, depending on your phone's version.
To see all the devices connected to your home network and their addresses, log into your router's settings page. Open a web browser and type your router's IP address — usually 192.168.1.1 or 192.168.0.1, printed on the router itself or in its manual. Log in with your router's username and password, then look for a section called "Connected Devices," "DHCP Clients," or "Device List." This shows every device currently using your network and what address it has.
Why IP addresses matter for security and troubleshooting
Knowing how IP addresses work helps you spot problems. If your device shows an address starting with 169.254, it's not reaching your router's DHCP server — try restarting the device or moving closer to the router. If two devices somehow got the same private address, they'll interfere with each other; restarting both usually fixes it by forcing them to ask for new addresses from DHCP.
For security, remember that your public IP address is visible to every website you visit and every online service you use. It's one piece of information that can be used to track your general location or link your activities across websites. Using a VPN masks your public IP address by routing your traffic through another server, making websites see the VPN's address instead of yours. Your private IP addresses inside your home network are not visible to the internet and don't need a VPN to protect them.
Frequently Asked Questions
Can someone find my home address from my IP address?
Not your exact home address, but roughly your city or neighborhood. Your public IP address is tied to your internet service provider's service area, so websites can use it to estimate your location within a few miles. They cannot see your street address or apartment number from the IP address alone. Your private IP addresses (192.168.x.x) are completely invisible to the internet and reveal nothing.
What happens if I manually set an IP address that's already in use?
You'll have an IP conflict. Both devices will have trouble connecting, and one or both may disconnect and reconnect repeatedly. If you're setting a static address on a device, choose one outside your router's DHCP range — your router's settings page shows which addresses it reserves for DHCP. Or use DHCP reservation instead, which tells your router to always give that device the same address without you having to configure the device itself.
Why does my device sometimes show a different IP address?
If it's a private address, your DHCP lease probably expired and your router assigned you a different one. This is normal. If you need the same address every time, set up a static address or DHCP reservation. If it's your public IP address that changed, your internet service provider likely rotated it. Most providers do this periodically, and it's not something you can control without paying for a static public IP.
Do I need to know my IP address to use the internet?
No. Your device and router handle IP addresses automatically. You only need to know it if you're troubleshooting a connection problem, setting up a device like a printer on your network, or accessing your router's settings page. For everyday internet use, the system works invisibly in the background.