What a static IP address does and why you might want one
A static IP address is one that stays the same every time your device connects to your network. By default, your router hands out addresses that change — your phone might be 192.168.1.50 one day and 192.168.1.75 the next. A static address locks it to one number, so you always know where to find that device on your network.
This matters for security because some of your setup depends on knowing which device is which. If you want to block a specific computer from accessing the internet at certain times, or route one device's traffic through a VPN while leaving others alone, or set up a camera that records to a particular folder on your network, you need that device to have the same address every time it connects. Without it, your rules stop working the moment the address changes.
Static addresses also make troubleshooting easier — when something goes wrong, you can look at your router's logs and actually track what happened, instead of chasing a device that might have had three different addresses in the past week.
Key Takeaways
- You can set a static address either on the device itself or by telling your router to always give that device the same address — the router method is simpler and works better.
- Write down the address you choose before you start, and pick one outside the range your router normally uses (usually 192.168.1.100 and up) to avoid conflicts.
- After you make the change, restart the device and check that it actually has the address you set — don't assume it worked.
- If a device stops connecting after you set a static address, the most common cause is a typo in the gateway or DNS settings, which you can fix by going back and checking the numbers.
Two ways to set a static address: on the device or on the router
You have two paths. The first is to go into the device itself — your laptop, phone, or desktop — and tell it "always use this address." The second is to go into your router and tell it "whenever this device asks for an address, give it this one." Both work, but the router method is usually better because you don't have to change settings on every device, and the settings stay in one place where you can see them all at once.
The router method is also more reliable. If you set a static address on a device and then move that device to a different network, it might try to use that same address on the new network and cause problems. A router-based static address only applies when the device is on your home network, so it travels cleanly.
For most people, the router method is the right choice. If you have a device that moves between networks often — like a work laptop that connects to your home network and also to your office network — setting the address on the device itself gives you more control, but it requires more steps.
How to set a static address through your router
Start by finding your device's MAC address, which is a unique identifier that your router uses to recognize it. On Windows, open Command Prompt and type ipconfig /all, then look for "Physical Address" — that's your MAC address. On Mac, go to System Settings, click Network, select your Wi-Fi connection, and click Details — the MAC address is listed as "Wi-Fi Address." On an iPhone or Android phone, go to Settings, About, and look for "MAC Address" or "Wi-Fi MAC Address."
Write that address down. Then log into your router — usually by typing 192.168.1.1 or 192.168.0.1 into a web browser, or by opening your router's app. You'll need the router's admin username and password, which is often printed on the router itself or in the manual. Look for a section called "DHCP," "Reserved IP," "Static IP," "Address Reservation," or "Connected Devices" — the exact name varies by router brand.
In that section, find your device in the list of connected devices and select it. The router will usually show you its current address. Decide what static address you want to give it — pick something in the range 192.168.1.100 to 192.168.1.254 if your router is 192.168.1.1, or 192.168.0.100 to 192.168.0.254 if your router is 192.168.0.1. This keeps your static addresses out of the range your router normally uses for temporary assignments, so there's no chance of a conflict.
Enter that address, save the settings, and restart the device. Once it reconnects, check that it actually has the address you set. On Windows, open Command Prompt and type ipconfig again. On Mac, go back to System Settings and check the IP address. On a phone, go to Settings, Wi-Fi, tap your network name, and look at the IP address shown. If it matches what you set, you're done. If it doesn't, go back into the router and check for typos.
How to set a static address on the device itself
On Windows, go to Settings, Network and Internet, Wi-Fi, and click "Manage known networks." Select your network and click "Properties." Scroll down to "IP assignment" and click "Edit." Change the dropdown from "Automatic (DHCP)" to "Manual," turn on IPv4, and enter the address you want, the subnet mask (usually 255.255.255.0), and the gateway (usually 192.168.1.1 or 192.168.0.1 — whatever your router's address is). Click Save and restart the device.
On Mac, go to System Settings, Network, Wi-Fi, and click "Details." Click the TCP/IP tab. Change "Configure IPv4" from "Automatic (DHCP)" to "Manual." Enter the IP address, subnet mask, and router address, then click OK. On an iPhone, go to Settings, Wi-Fi, tap your network name, and tap "Configure IP." Change from "Automatic" to "Manual" and enter the same information. On Android, go to Settings, Wi-Fi, long-press your network name, tap "Modify," and look for "IP settings" — change it from DHCP to Static and enter your address.
The tricky part is getting the subnet mask and gateway right. For most home networks, the subnet mask is 255.255.255.0 and the gateway is the same as your router's address. If you're not sure what your router's address is, go back to the router method section above — the address you use to log into the router is the gateway address you need here.
What to do if a device stops connecting after you set a static address
The most common problem is a typo in the gateway or DNS settings. Go back into the device's network settings and check that the gateway address matches your router's address exactly — if you typed 192.168.1.1 but your router is actually 192.168.0.1, the device won't be able to reach the internet. Same with DNS: if you entered a DNS server address and it has even one digit wrong, the device won't be able to look up website names.
The second most common problem is that you picked a static address that's already in use. If you set a device to 192.168.1.50 and another device is also using 192.168.1.50, both will have connection problems. This is why the router method is safer — the router won't let you create a conflict. If you set the address on the device itself, pick a number higher than 100 to stay out of the range your router normally uses.
If restarting the device doesn't fix it, go back into the network settings and double-check every number. If you're still stuck, switch back to automatic (DHCP) temporarily to confirm the device can connect at all, then try the static address again with the settings written down in front of you.
When you should use static addresses and when you shouldn't
Use a static address for anything that needs to stay in one place: a desktop computer, a network printer, a security camera, a NAS drive, or a smart home hub. These devices benefit from having a known address because you're setting up rules around them or accessing them regularly.
Don't use static addresses for phones, tablets, or laptops that move between networks. These devices are better off with automatic addresses because they'll connect cleanly to your home network, your office network, a coffee shop, and a hotel without you having to change settings each time.
If you have a lot of devices and you're worried about keeping track, the router method solves this — you can see all your static address assignments in one place in the router settings, and you don't have to touch the devices themselves.
Frequently Asked Questions
What's the difference between a static address and a reserved address?
They're the same thing in practice. "Reserved" usually means the router is holding that address for a specific device, while "static" usually means the device itself is set to use that address. Both result in the device having the same IP every time it connects. The router method is often called "reservation" because the router is reserving the address for you.
Can I use any address I want, or are there rules?
Pick an address in the same range as your router — if your router is 192.168.1.1, use 192.168.1.something. Avoid 192.168.1.1 itself (that's the router) and 192.168.1.255 (that's reserved). Stick to 192.168.1.100 and higher to avoid conflicts with devices your router assigns automatically. If your router is 192.168.0.1, use 192.168.0.100 and higher instead.
What if I forget what static address I set?
Check the device's network settings — it will show you the current IP address. Or log into your router and look at the list of connected devices; it will show you what address each device has. If you used the router method, the static address assignment is saved in the router settings, so you can always look it up there.
Do I need to set a static address for security?
Not by itself. A static address is a tool that makes other security settings work better — like blocking a device from the internet at certain times, or routing one device through a VPN. If you're not using those kinds of rules, a static address doesn't add security on its own. It's useful for organization and troubleshooting, but not required for a safe network.