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, instead of changing automatically like it normally does. Your router usually assigns a temporary address (called a dynamic IP) that shifts around — this works fine for most people browsing the web or checking email. But if you run a home server, need to access a printer reliably, or want a device to always appear in the same place on your network, a static address makes that possible.

There are two ways to set this up: you can configure it on the device itself, or you can tell your router to always give that device the same address. The device method works everywhere but requires you to remember the address you chose. The router method is easier to manage if you have many devices, since you control everything from one place.

Key Takeaways

  • Static IP addresses stay the same across restarts, while dynamic addresses change — you need static only if a device must always be reachable at the same address.
  • You can set a static address either on the device itself (in network settings) or on your router (by reserving an address for that device's MAC address).
  • The router method is simpler for most home networks because you manage everything in one place and avoid address conflicts.
  • If you set the address on the device, pick a number outside your router's DHCP range — usually anything above 192.168.1.200 if your router is 192.168.1.1.
  • After changing settings, restart the device or renew its network connection to make sure the new address takes effect.

Setting a static address through your router (the easier method)

Most home networks run better when you set the static address on your router instead of on each device. Your router has a feature called DHCP reservation that tells it "whenever this device connects, always give it this address." You need two pieces of information: the device's MAC address (a unique identifier that looks like 00:1A:2B:3C:4D:5E) and the IP address you want to assign.

To find your device's MAC address, go to your network settings. On Windows, open Command Prompt and type ipconfig /all — look for "Physical Address" next to your network adapter. On Mac, go to System Settings > Network, select your connection, and click Details — the MAC address is listed as "Wi-Fi Address." On Linux, open a terminal and type ip link show — the MAC address appears after "link/ether."

Next, log 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 a sticker on the router itself. Enter your router's username and password (also on the sticker, or check your router's manual if you changed it). Look for a section called DHCP Reservation, DHCP Settings, or Reserved IP Addresses — the exact name varies by router brand.

In that section, create a new reservation by entering the device's MAC address and the static IP you want to assign. Pick an address that won't conflict with others — if your router is 192.168.1.1, try something like 192.168.1.100 or higher. Save the changes and restart the device. It should now always receive that same address when it connects.

Setting a static address directly on the device

If you prefer to configure the address on the device itself, the steps differ by operating system. This method works on any network, but you have to remember which address you chose and make sure no two devices use the same one.

On Windows: Right-click the network icon in the system tray and select "Open Network & Internet settings." Click "Advanced network settings," then find your active connection and click "Edit." Under IP settings, change from "Automatic (DHCP)" to "Manual," then toggle on IPv4. Enter your static address (like 192.168.1.50), your subnet mask (usually 255.255.255.0), and your gateway (usually 192.168.1.1 — the same as your router's address). Add your router's address again as the DNS server, or use 8.8.8.8 and 8.8.4.4 for Google's public DNS. Click Save.

On Mac: Go to System Settings > Network, select your connection, and click Details. Click the TCP/IP tab. Change "Configure IPv4" from "Automatic" to "Manual." Enter your static IP address, subnet mask (255.255.255.0), and router address as the gateway. Click OK, then Apply.

On Linux: The process depends on your distribution and network manager. For systems using NetworkManager (most modern distributions), right-click the network icon and select "Edit Connections." Choose your connection, click Edit, go to the IPv4 tab, and change from "Automatic (DHCP)" to "Manual." Add your static address, netmask, and gateway, then save. For systems using netplan (Ubuntu 18.04 and later), edit /etc/netplan/01-netcfg.yaml with a text editor and add your static configuration, then run sudo netplan apply.

Choosing an address that won't cause conflicts

The key to avoiding problems is picking an address outside the range your router automatically assigns. Your router has a DHCP pool — a set of addresses it hands out to devices that ask for one. If you pick an address inside that pool, two devices might end up with the same address, breaking both connections.

To find your router's DHCP range, log into its admin panel and look for DHCP settings. Most home routers use something like 192.168.1.100 to 192.168.1.254, which means you should pick something below 100 — like 192.168.1.50 — or configure a DHCP reservation on the router instead. If you are unsure, the reservation method is safer because the router manages the conflict prevention for you.

What to do if the device still gets a different address

If you set a static address on the device but it keeps getting a different one, your router's DHCP is overriding it. This usually means the address you chose is inside your router's DHCP pool. Log back into your router and either lower the DHCP pool's starting address or use DHCP reservation instead.

If you set up a DHCP reservation on the router but the device still does not get the reserved address, restart the device and make sure you entered its MAC address correctly. Some devices show a different MAC address for Wi-Fi and Ethernet — if you reserved an address for the Wi-Fi MAC but the device is plugged in with Ethernet, it will not match. Check which connection type the device is actually using and reserve an address for that MAC address.

Testing your static address and making sure it sticks

After you configure the static address, restart the device or renew its network connection to make the change take effect. On Windows, open Command Prompt and type ipconfig /release followed by ipconfig /renew. On Mac, go to System Settings > Network, select your connection, and click "Renew DHCP Lease." On Linux, run sudo systemctl restart networking or restart the device.

Once the device reconnects, verify the address took. On Windows or Mac, open network settings and check the IP address shown. On Linux, run ip addr show in a terminal. The address should match what you configured. If it does not, check that you entered the settings correctly and that the address is not inside your router's DHCP pool.

When to use static addresses and when to skip them

Use a static address if the device needs to be reachable at a known location — a home server, a network printer, a security camera, or a NAS drive. You also need one if you are port-forwarding from your router to a specific device, since the forwarding rule points to a particular address.

Skip static addresses for phones, laptops, and tablets that move between networks. These devices work better with dynamic addresses because they can connect to different networks (your home Wi-Fi, a coffee shop, a friend's house) without address conflicts. If you have many devices, the router's DHCP reservation method is simpler than configuring each one individually.

Frequently Asked Questions

What is the difference between a static IP and a reserved IP?

A static IP is set on the device itself and stays the same no matter what network it connects to. A reserved IP is set on your router and only applies when that device is on your home network. Reserved IPs are easier to manage because you control them from one place.

Can I use any IP address I want?

No — you must use an address in your local network range. If your router is 192.168.1.1, your static address must start with 192.168.1. You also cannot use addresses already taken by other devices or your router itself (usually 192.168.1.1). Avoid your router's DHCP pool to prevent conflicts.

Will a static IP address make my network slower?

No. Static and dynamic addresses have the same speed. The only difference is whether the address changes. Static addresses are useful for reliability and reachability, not performance.

What happens if two devices have the same IP address?

Both devices will lose network connectivity or behave unpredictably. This is called an IP conflict. If it happens, change one device's address or use your router's DHCP reservation to prevent the router from assigning that address to anyone else.

Do I need a static IP address for my home Wi-Fi?

Only if you need to reach a specific device reliably — like a printer or server. For everyday devices like phones and laptops, dynamic addresses work fine and are actually better because they avoid conflicts when you move between networks.