What a static IP address is and why you need one
A static IP address is an address that stays the same every time your device connects to your network. Your router normally assigns addresses automatically — your phone might be 192.168.1.50 one day and 192.168.1.87 the next. A static address locks it to one number, so you always know where to find that device.
This matters for security because some of your most important devices need a predictable location. If your network camera, printer, or home automation hub keeps changing addresses, you cannot reliably block it from accessing certain parts of your network, monitor what it is doing, or set up port forwarding rules that actually stick. A static address makes it possible to write rules that work the same way every time.
You have two ways to create a static address: you can set it on the device itself, or you can tell your router to always give that device the same address. The router method is simpler and more reliable for most people.
Key Takeaways
- Static IP addresses stay the same across restarts, letting you write network rules that actually work consistently.
- The easiest method is to set a DHCP reservation in your router, which tells it to always give a specific device the same address.
- You need the device's MAC address (a hardware identifier) to create a reservation, which you can find in the device's network settings or on your router's connected devices list.
- Setting a static address directly on the device works but requires you to remember the address and avoid conflicts if your router's DHCP range overlaps with it.
Using your router to assign a static address (DHCP reservation)
Most home routers have a feature called DHCP reservation that lets you pick a device and tell the router "always give this one the same address." This is the method to use first because the router handles the work, and you cannot accidentally create conflicts.
Start by logging into your router's admin panel. 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 the manual. Enter your router's username and password (the default is often admin/admin, but check your manual if that does not work).
Look for a section called DHCP, DHCP Reservation, Reserved Addresses, or Connected Devices. The exact name varies by manufacturer. Once you find it, you will see a list of devices currently on your network. Find the device you want to lock down — your camera, printer, or whatever it is — and note its MAC address, a string of six pairs of numbers and letters like 00:1A:2B:3C:4D:5E.
Click the option to reserve or assign a static address to that device. The router will ask you what address you want to give it. Pick something in the same range as your other devices but outside your DHCP range. If your router is set to hand out addresses from 192.168.1.100 to 192.168.1.254, pick something like 192.168.1.50. Save the setting and restart the device. From now on, it will get that same address every time it connects.
Setting a static address directly on the device
If your router does not have a reservation feature, or if you are setting up a device that does not connect through your router (like a computer on a wired connection you want to isolate), you can set the address on the device itself.
On Windows, go to Settings > Network & Internet > Advanced Network Settings > Change Adapter Options. Right-click your network connection, choose Properties, then Internet Protocol Version 4 (TCP/IPv4). Select "Use the following IP address" and enter the address you want, your subnet mask (usually 255.255.255.0), and your gateway (your router's IP, usually 192.168.1.1). On Mac, go to System Settings > Network, select your connection, click Details, then TCP/IP, and choose "Manual" from the Configure IPv4 dropdown.
The risk here is that you have to remember the address you picked, and if you pick one that overlaps with your router's DHCP range, you can create a conflict where the router tries to hand out the same address to another device. To avoid this, pick an address well outside the range your router uses. If your router hands out 192.168.1.100 to 192.168.1.254, use something like 192.168.1.10 or 192.168.1.20.
Finding your device's MAC address
To create a DHCP reservation, you need the device's MAC address. This is a hardware identifier built into every network card, and it does not change when you restart or move the device to a different network.
The easiest place to find it is in your router's admin panel, in the Connected Devices or DHCP Clients section — the router already knows it because the device just told it when it connected. If you are setting up a device that is not yet on the network, or if your router does not show MAC addresses, you can find it on the device itself. On Windows, open Command Prompt and type ipconfig /all, then look for "Physical Address." On Mac, go to System Settings > Network, select your connection, click Details, then look for "MAC Address." On a printer or camera, check the network settings menu or look at the label on the back.
Avoiding address conflicts on your network
The main thing that goes wrong with static addresses is a conflict: two devices end up with the same address, and one or both stop working. This happens most often when you set an address directly on a device and your router's DHCP range overlaps with it.
To prevent this, know your router's DHCP range before you pick a static address. Log into your router and find the DHCP settings — look for a section that says something like "DHCP Pool" or "DHCP Range." It will show you the lowest and highest addresses the router hands out automatically. Pick your static address outside that range. If the range is 192.168.1.100 to 192.168.1.254, use 192.168.1.2 through 192.168.1.99. If you use DHCP reservation instead, the router handles this for you and conflicts are nearly impossible.
When to use static addresses and when not to
Use static addresses for devices that need consistent network rules: security cameras, printers, network storage, home automation hubs, and anything else you want to monitor or control. These devices benefit from having a predictable location.
Do not use static addresses for phones, laptops, tablets, or other devices that move between networks. These devices work better with automatic addresses because they might connect to your home network, a coffee shop network, and a work network all in the same day. A static address set on the device itself will break when it connects somewhere else.
Frequently Asked Questions
What is the difference between a static IP and a DHCP reservation?
A static IP is set on the device itself and stays the same no matter what. A DHCP reservation is set on the router and tells it to always hand out the same address to a specific device. DHCP reservation is simpler because the router prevents conflicts automatically.
Can I use a static IP address outside my home network?
A static address only works on the network where you set it. If you set a static address on your laptop and then take it to a coffee shop, that address will not work there — the coffee shop's network will not recognize it. Use DHCP reservation for devices that stay home, and automatic addresses for devices that travel.
What happens if two devices have the same IP address?
Both devices will have trouble connecting. Your router will not know which one to send data to, and one or both will drop off the network. This is why DHCP reservation is safer than setting addresses on devices — the router prevents it from happening.
Do I need a static IP to set up port forwarding?
Yes. Port forwarding tells your router to send outside traffic to a specific device, and that device needs a stable address or the rule stops working when the address changes. Use a DHCP reservation for any device you plan to forward ports to.