What a static IP address is and why you might need one
A static IP address is one that stays the same every time your device connects to your network, rather than changing each time you restart or reconnect. Your router normally hands out temporary addresses (called dynamic IPs) that shift around. A static address locks your device to one number so other devices, services, or people outside your network can reliably find it.
You might set a static IP if you run a home server, set up remote access to a computer, want a printer to stay at the same address so it doesn't break when you add it to your phone, or need to forward ports on your router to a specific device. Without a static address, port forwarding stops working the moment your device gets a new IP.
There are two places where static assignment happens: on the device itself (called a static configuration) or on your router (called a DHCP reservation). The router method is usually simpler and safer for home networks, because your router still manages the address and you avoid conflicts.
Key Takeaways
- Static IPs can be set on the device itself or reserved on your router; router reservations are safer for home networks because they prevent address conflicts.
- You need your device's MAC address (a unique hardware identifier) to create a router reservation, which you can find in network settings on Windows, Mac, or Linux.
- The steps differ by router brand, but most have a DHCP reservation or static lease option in the settings page you reach by typing your router's IP into a browser.
- Setting a static IP on the device itself requires entering the address, subnet mask, gateway, and DNS servers manually in network settings, and mistakes here can break your internet.
- After you set a static IP, restart your device and check that it connects with the address you assigned; if it does not, log into your router to see if there is a conflict.
Finding your device's MAC address
Before you can reserve an address on your router, you need your device's MAC address — a unique identifier that your router uses to recognize it. Every network device has one, and it looks like six pairs of numbers and letters separated by colons, such as 00:1A:2B:3C:4D:5E.
On Windows, open Command Prompt and type ipconfig /all, then look for the line labeled "Physical Address" under your network adapter. On Mac, go to System Settings, click Network, select your connection, then click Details and find "Wi-Fi Address" or "Ethernet Address" depending on how you are connected. On Linux, open a terminal and type ip link show and find the address next to "link/ether".
Write down this address exactly as it appears. You will enter it into your router settings to tell the router "whenever this device asks for an address, always give it the same one."
Creating a DHCP reservation on your router
A DHCP reservation is the safest way to assign a static IP on a home network. Your router still controls the address, so it will not accidentally give the same IP to two devices. Log into your router by opening a browser and typing your router's IP address — usually 192.168.1.1 or 192.168.0.1, though some routers use different addresses. Check your router's label or manual if neither of those works.
Once you are logged in, look for a section called DHCP, DHCP Reservation, Static Lease, Address Reservation, or Connected Devices. The exact name and location vary by brand. In that section, you will usually see a list of devices currently on your network. Find the device you want to assign an address to, and look for a button or option to reserve, make static, or lock its address.
When you select that option, your router will show you the device's current IP address and ask you to confirm or change it. You can usually keep the address it already has, or type in a different one from the same range — for example, if your router uses addresses from 192.168.1.100 to 192.168.1.254, you can pick any address in that range. Write down the address you chose, then save the reservation.
Restart your device and check that it reconnects with the address you reserved. On Windows, open Command Prompt and type ipconfig. On Mac, go to System Settings and look at your network connection details. On Linux, type hostname -I. The address shown should match what you reserved.
Setting a static IP directly on your device
If you cannot access your router settings or prefer to configure the device itself, you can set a static IP in your device's network settings. This method requires more information and is easier to get wrong, so use it only if a router reservation is not possible.
On Windows, go to Settings, click Network & Internet, select your connection, then click Edit. Change "IP assignment" from Automatic to Manual, turn on IPv4, and enter the static address you want, the subnet mask (usually 255.255.255.0), the gateway (usually your router's IP, like 192.168.1.1), and DNS servers (you can use 8.8.8.8 and 8.8.4.4 for Google's public DNS, or ask your internet provider for theirs). Save the settings and restart your device.
On Mac, go to System Settings, click Network, select your connection, then click Details. Go to the TCP/IP tab, change "Configure IPv4" from Automatic to Manual, and enter the same information: address, subnet mask, router, and DNS servers. Click OK and apply the changes.
On Linux, the steps depend on your distribution and network manager. In most cases, you can right-click your network connection, select Edit, switch from Automatic to Manual, and enter the address, subnet mask, gateway, and DNS servers. Save and reconnect.
After you restart, verify the address took effect using the same commands mentioned earlier. If your device does not connect or loses internet, you likely entered the gateway or DNS servers incorrectly — go back and double-check those fields against your router settings or your internet provider's documentation.
Avoiding IP address conflicts
The main risk when assigning static IPs is accidentally giving the same address to two devices. If you use a router reservation, this is nearly impossible because the router prevents it. If you set a static IP on the device itself, you must pick an address outside the range your router normally hands out to other devices.
Most home routers use a DHCP range like 192.168.1.100 to 192.168.1.254, which means they will not assign anything below 100. If you set a static IP to something like 192.168.1.50, you are safe. If you set it to 192.168.1.150, you risk the router assigning that same address to another device, which breaks both connections.
Check your router settings to see what DHCP range it uses, then pick a static address outside that range. If you are unsure, pick an address in the first 50 numbers of your network (like 192.168.1.10 through 192.168.1.50) and you will almost certainly be safe.
Troubleshooting when a static IP does not work
If you set a static IP and your device does not connect, or connects but cannot reach the internet, the problem is usually in one of four fields: the address itself, the subnet mask, the gateway, or the DNS servers.
First, check that the address is in the right range for your network. If your router uses 192.168.1.x, your static address should also start with 192.168.1. If it does not, change it. Second, verify the subnet mask is 255.255.255.0 — this is correct for almost all home networks. Third, confirm the gateway is your router's IP address; log into the router to find it if you are not sure. Fourth, check the DNS servers; if you used Google's DNS (8.8.8.8) and it does not work, try your internet provider's DNS servers instead, which you can find on their website or by calling them.
If you changed a static IP on the device itself and nothing works, the easiest fix is to switch back to Automatic (DHCP) in your network settings, restart, and then try the router reservation method instead. That way your router manages the address and you avoid these configuration mistakes.
When to use static IP versus DHCP reservation
For most home networks, a DHCP reservation on your router is the right choice. It is simpler, safer, and you do not have to remember network details. Use a static IP set on the device itself only if you cannot access your router settings, you are setting up a device on a network you do not own, or you need the address to persist even if the router restarts or loses power.
If you are running a server, hosting a game, or setting up port forwarding, either method works — but start with the router reservation. If you are moving a device between networks often, a static IP on the device is more portable because it travels with the device. For printers, cameras, and other devices that stay in one place, a router reservation is almost always the better choice.
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 your router and tells it to always give a specific device the same address. Both result in the device having the same IP, but the router method is safer because the router prevents conflicts.
Can I use any IP address I want?
No. The address must be in the same range as your network — usually 192.168.1.x or 192.168.0.x for home networks. It should also be outside the range your router normally hands out (the DHCP range), or you risk conflicts. Check your router settings to see what range it uses.
What happens if two devices have the same static IP?
Both devices will lose internet or experience intermittent connection problems because the network does not know which device to send data to. If this happens, change one of the addresses immediately. Using a router reservation instead of a device-level static IP prevents this because the router will not assign the same address twice.
Do I need a static IP for Wi-Fi and ethernet separately?
Yes. Each connection type has its own MAC address, so if your device connects via both Wi-Fi and ethernet, you need a separate reservation or static IP for each one. Most devices use only one at a time, so you usually only need to set up the one you actually use.
Will a static IP slow down my internet?
No. A static IP does not affect speed. It only determines whether your device keeps the same address or gets a new one each time it connects. The speed of your connection depends on your internet provider and your router, not on whether the address is static or dynamic.