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.75 the next. A static address locks it to one number, so you always know where to find that device.

You need this for devices that other things depend on. If you set up a home security camera to record to a network drive, that drive needs a static address or the camera will lose it. If you want to access your printer from anywhere in your house by name rather than hunting for its current number, static addresses make that work. Port forwarding — the thing that lets you reach your home computer from outside — requires the device inside to have a static address, or the router won't know where to send the traffic.

The confusion point: static addresses are not the same as reservations. A reservation is when your router assigns the same address to the same device every time, but the device still asks for it. A static address is when you tell the device itself what number to use, and it never asks. Most home networks use reservations because they are simpler and less likely to create conflicts. This guide covers both, starting with the easier path.

Key Takeaways

  • A reservation in your router is the simplest way to keep a device at the same address — the router remembers which address belongs to which device and always gives it back.
  • You need the device's MAC address (a unique identifier printed on the device or visible in its network settings) before you can create a reservation.
  • Setting a static address directly on the device itself is more complex but necessary if your router does not support reservations or if you need the address to survive a router restart.
  • The steps differ between Windows, Mac, and Linux, and between wired and wireless connections, so you will need to know which you are configuring.
  • Conflicts happen when two devices try to use the same address — avoid this by setting static addresses outside the range your router normally assigns.

Creating a reservation in your router (the simpler path)

Most home routers can reserve an address for a specific device without you touching the device itself. You log into the router, tell it "whenever this device asks for an address, always give it this one," and you are done. This works for almost every home setup and is the first thing to try.

Start by finding your device's MAC address — a unique identifier that looks like 00:1A:2B:3C:4D:5E. On Windows, open Command Prompt, type ipconfig /all, and look for "Physical Address" next to your network adapter. On Mac, go to System Settings, click Network, select your connection, then click Details — the MAC address is listed as "Wi-Fi Address" or "Ethernet Address". On Linux, open a terminal and type ip link show — the MAC address is the line starting with "link/ether".

Next, log into your router. Open a web browser and type 192.168.1.1 or 192.168.0.1 (check your router's label if neither works). Log in with the username and password on the router itself — the defaults are often admin/admin or admin/password, but yours may be different. Once inside, look for a section called DHCP, Reserved Addresses, Address Reservation, or Static DHCP. The exact name varies by manufacturer. Enter your device's MAC address and the address you want it to have — something like 192.168.1.100 works well for most homes. Save the settings and restart your device. It should now always get that same address.

Setting a static address directly on a Windows device

If your router does not support reservations, or if you need the address to persist even after a router restart, set it on the device itself. On Windows, this means telling the network adapter to stop asking the router for an address and instead use one you specify.

Right-click the network icon in the system tray and select "Open Network & Internet settings". Click "Advanced network settings", then find your connection (Ethernet or Wi-Fi) and click it. Scroll down and click "Edit" next to IP assignment. Change the dropdown from "Automatic (DHCP)" to "Manual". Turn on IPv4 and fill in the fields: IP address (something like 192.168.1.100), Subnet mask (usually 255.255.255.0), and Default gateway (usually 192.168.1.1 — the same as your router's address). Leave DNS blank or enter 8.8.8.8 if you want Google's DNS. Click Save.

The device will disconnect and reconnect. If it does not reconnect, the address you chose is already in use — go back and pick a different number. To verify it worked, open Command Prompt and type ipconfig — your device should show the address you set. If you ever need to switch back to automatic, follow the same steps and change the dropdown back to "Automatic (DHCP)".

Setting a static address on a Mac

On Mac, static addresses are set in the network settings, not in a separate configuration file. Open System Settings and click Network. Select your connection (Ethernet or Wi-Fi) and click Details. Click the TCP/IP tab.

Change the dropdown that says "Configure IPv4" from "Using DHCP" to "Manually". Fill in the IP Address field with something like 192.168.1.100, the Subnet Mask with 255.255.255.0, and the Router field with your router's address (usually 192.168.1.1). Leave the DNS Servers field alone unless you have a reason to change it. Click OK, then click explore. Your Mac will disconnect and reconnect to the network with the new address.

To verify it worked, go back to Network, select your connection, and click Details — the TCP/IP tab should now show the address you set. If your Mac cannot connect after this change, the address is likely already in use by another device. Go back and pick a different number, or check your router to see what addresses are currently assigned.

Setting a static address on Linux

Linux configuration depends on your distribution and network manager. On Ubuntu and most Debian-based systems, open Settings, click Network, and select your connection. Click the gear icon to edit it. Under IPv4, change the toggle from "Automatic" to "Manual". Enter your IP address (like 192.168.1.100), netmask (255.255.255.0), and gateway (your router's address, usually 192.168.1.1). Click explore.

If you are using a server or headless system without a graphical interface, you will need to edit the network configuration file directly. On Ubuntu 20.04 and later with Netplan, open a terminal and type sudo nano /etc/netplan/00-installer-config.yaml. Find the section for your network interface and change it to include static addresses. The format looks like this:

ethernets:   eth0:     dhcp4: false     addresses: [192.168.1.100/24]     gateway4: 192.168.1.1     nameservers:       addresses: [8.8.8.8, 8.8.4.4]

Save the file (Ctrl+O, then Enter, then Ctrl+X) and type sudo netplan explore. Your connection will restart with the new address. If you cannot reach the network, you may have a syntax error in the file — check that indentation is correct and all colons are in place.

Avoiding conflicts and choosing the right address range

The most common problem with static addresses is that two devices end up with the same one. This usually happens when you set a static address in the same range your router normally assigns automatically. If your router is set to hand out addresses from 192.168.1.2 to 192.168.1.254, and you manually set a device to 192.168.1.50, the router might also assign 192.168.1.50 to something else.

The safest approach is to set static addresses outside the range your router uses. Log into your router and find the DHCP settings — look for "DHCP Pool", "DHCP Range", or "Address Range". If it says the range is 192.168.1.100 to 192.168.1.254, set your static addresses to 192.168.1.2 through 192.168.1.99 instead. This way the router will never try to assign those addresses automatically.

If you have already set a static address and devices are losing connection or showing "no internet" warnings, check your router's DHCP log or connected devices list to see if there is a conflict. If there is, change your static address to a number outside the DHCP range, or create a reservation in the router instead so it knows not to assign that address to anything else.

Testing your static address and troubleshooting connection loss

After you set a static address, verify it is working by opening a command prompt or terminal and typing ping 8.8.8.8 (or ping google.com). If you get replies, the address is set correctly and your device can reach the internet. If you get "host unreachable" or "destination unreachable", the address is either wrong or in conflict with another device.

If your device loses connection after setting a static address, the most likely cause is that the gateway or DNS is wrong. Go back to your network settings and verify that the gateway matches your router's address — usually 192.168.1.1 or 192.168.0.1. If DNS is blank, try setting it to 8.8.8.8 and 8.8.4.4 (Google's public DNS). If the device still cannot connect, try a different IP address in the same range — for example, if 192.168.1.100 does not work, try 192.168.1.101.

On Windows, you can also run ipconfig /all to see exactly what address, gateway, and DNS your device thinks it has. Compare these to what you set — if they do not match, the device did not save your changes correctly. Try setting them again, and make sure you clicked Save or explore before closing the settings window.

Frequently Asked Questions

What is the difference between a static address and a reservation?

A reservation is set in your router and tells it to always give the same address to the same device. A static address is set on the device itself and tells it to always use a specific address without asking the router. Reservations are simpler and safer for most home networks because the router still manages the addresses and prevents conflicts.

Can I set a static address on a phone or tablet?

Yes, but most people should use a router reservation instead. Phones and tablets move between networks (home, work, coffee shop), and a static address set for your home network will break when you leave. A reservation in your router works automatically without any setup on the phone itself.

What happens if I set two devices to the same static address?

Both devices will have trouble connecting, and network traffic meant for one may go to the other. This is called an IP conflict. If this happens, change one of the addresses when ready. To prevent it, always use a reservation in your router if possible, or keep careful notes of which static addresses you have assigned.

Do I need a static address for my printer or security camera?

Only if you want to reach it by a fixed address or name. If you just print from devices on the same network, automatic addressing works fine. If you want to access the camera from outside your home or set up port forwarding, a static address or reservation makes it much simpler.

Will setting a static address make my internet faster?

No. A static address does not change your connection speed — it only determines which number identifies your device on the network. It makes your network more reliable and easier to manage, but not faster.