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. Your router normally assigns temporary addresses automatically — a process called DHCP — but you can override this and set one manually.

You need a static IP if you're running a home server, setting up remote access to a device, hosting a game server, or configuring port forwarding for security cameras or printers. Without a static address, your port forwarding rules break the moment your device gets a new IP. You also need one if you're troubleshooting network problems and need to know your device's address won't shift mid-diagnosis.

The trade-off is small: a static IP takes a few minutes to configure and you lose the convenience of automatic assignment. But once it's set, it stays put until you change it.

Key Takeaways

  • Static IPs are set either on the device itself (in network settings) or on your router (by reserving an address for that device's MAC address).
  • Setting it on the device works immediately but can cause conflicts if you move between networks; reserving it on the router is safer for home networks.
  • You need your device's MAC address (a unique hardware identifier) to reserve an address on your router.
  • A static IP on your home network stays private — it only affects how devices find each other inside your house, not your internet-facing address.
  • After setting a static IP, restart your device and confirm it took effect by checking your network settings or router admin panel.

Setting a static IP directly on Windows

On Windows 10 or 11, go to Settings > Network & Internet > WiFi (or Ethernet if you're wired). Select your network, then scroll down and click Edit next to IP assignment. Change the dropdown from Automatic (DHCP) to Manual, then toggle on IPv4.

Enter an IP address in the range your router uses — usually 192.168.1.X or 192.168.0.X, where X is a number between 2 and 254. Avoid the first few numbers (your router often uses .1) and the high numbers (your router reserves those for DHCP). Enter your subnet mask (usually 255.255.255.0) and gateway address (usually 192.168.1.1 or 192.168.0.1 — the same as your router's address). Save and restart your device.

The risk here is that if you move your device to a different network, that IP address won't exist there and you'll lose connectivity until you switch back to automatic. For a desktop that stays home, this is fine. For a laptop you take places, reserving the address on your router is safer.

Setting a static IP on Mac or Linux

On Mac, go to System Settings > Network, select your connection, then click Details. Go to the TCP/IP tab and change Configure IPv4 from Automatic to Manual. Enter your IP address, subnet mask, and router address (gateway), then click OK.

On Linux, the process depends on your distribution. On Ubuntu with a graphical interface, open Settings > Network, click the gear icon next to your connection, go to the IPv4 tab, toggle Automatic off, and enter your IP, netmask, and gateway. On systems using the command line, you'll edit your network configuration file (usually /etc/netplan/ on modern Ubuntu) and restart networking with sudo netplan apply.

Like Windows, setting it on the device itself means the address only works on your home network. If portability matters, use your router's reservation feature instead.

Reserving a static IP on your router

This method is safer for devices that move between networks. You tell your router to always give a specific device the same IP address, so the device itself doesn't need to know about it.

Log into your router's admin panel — usually by typing 192.168.1.1 or 192.168.0.1 into a browser, then entering your router's username and password (often admin/admin, but check your router's label). Look for a section called DHCP Reservation, Static DHCP, Address Reservation, or Reserved Addresses — the exact name varies by router brand.

You'll need your device's MAC address, a unique hardware identifier. On Windows, open Command Prompt and type ipconfig /all, then look for "Physical Address" next to your network adapter. On Mac, go to System Settings > Network, select your connection, click Details, and find "MAC Address" in the Hardware tab. On Linux, type ip link show in the terminal.

In your router's reservation settings, enter that MAC address and the IP you want to assign (using the same range as before: 192.168.1.X or 192.168.0.X). Save the setting. Your device will now always receive that IP when it connects, without needing any configuration on the device itself.

Avoiding IP conflicts and choosing the right address range

The most common mistake is picking an IP that your router's DHCP server might also assign to another device. If two devices end up with the same IP, both lose connectivity.

To avoid this, check your router's DHCP settings and see what range it uses. Most home routers default to handing out addresses from 192.168.1.100 to 192.168.1.254 (or similar). Pick your static IP from the lower end — like 192.168.1.10 through 192.168.1.50 — so it falls outside the DHCP range. If you're using router reservation instead of device-level configuration, this matters less because the router won't hand out a reserved address to anyone else.

After you set your static IP, restart your device and verify it worked. On Windows, open Command Prompt and type ipconfig. On Mac or Linux, type ifconfig or ip addr. Look for your chosen IP in the output. You can also log into your router and check its connected devices list to confirm the address is there.

When static IPs cause problems and how to fix them

If you set a static IP on your device and then move it to a different network, it won't connect because that IP doesn't exist on the new network. The fix is to switch back to automatic DHCP in your network settings, or to manually enter an IP in the new network's range.

If you set a static IP and then lose internet access, the most likely cause is a typo in your gateway address (your router's IP). Double-check that it matches what you see when you type ipconfig /all (Windows) or netstat -nr (Mac/Linux) and look for the default gateway. Another cause is picking an IP that conflicts with another device — check your router's connected devices list to see if two devices have the same address.

If you reserved an address on your router but the device still gets a different IP, the device's MAC address might be wrong, or your router might not have saved the setting. Log back into the router, verify the MAC address matches exactly, and check that the reservation is still there. Some routers require you to reboot after adding a reservation.

Static IPs for specific tasks: servers, cameras, and printers

If you're setting up port forwarding for a home server, security camera, or game server, a static IP is essential — port forwarding rules point to a specific IP, and if that IP changes, the rule stops working. Use router reservation for this, since it's more reliable than device-level configuration.

For a printer or network storage device, a static IP makes it easier to find on your network and prevents print jobs from failing when the device's address changes. Again, router reservation is the safer choice.

For a laptop or phone you use in multiple locations, avoid setting a static IP on the device itself. Instead, reserve an address on your home router only — the device will get that address at home and use DHCP everywhere else. This gives you the benefit of a known address without the hassle of manual configuration when you travel.

Frequently Asked Questions

Will a static IP on my home network affect my public IP or internet speed?

No. A static IP on your home network is private — it only affects how devices find each other inside your house. Your public IP (the one the internet sees) is assigned by your internet provider and is separate. Network speed is determined by your router and connection, not by whether an IP is static or dynamic.

What's the difference between setting a static IP on the device and reserving it on the router?

Setting it on the device means the device itself remembers the address and uses it everywhere. Reserving it on the router means the router always gives that device the same address, but the device doesn't need to know about it. Router reservation is safer for devices that move between networks, because the device will use DHCP on other networks automatically.

Can I use any IP address I want, or are there restrictions?

You can only use addresses in your network's private range. For most home networks, that's 192.168.1.0 to 192.168.1.255 or 192.168.0.0 to 192.168.0.255. Avoid .0 (the network address) and .255 (the broadcast address). Also avoid any address your router's DHCP server might assign, and never use your router's own address (usually .1).

What if I forget which static IP I assigned to which device?

Log into your router's admin panel and check the connected devices list — it will show the IP and MAC address of every device on your network. You can also check your device's network settings directly. If you used router reservation, the router's admin panel will show all reserved addresses in the DHCP settings.

Do I need to restart my device after setting a static IP?

Yes, restart after setting a static IP on the device itself to make sure the change takes effect. If you reserved the address on your router, restart the device so it requests a new IP and receives the reserved one. Some routers also benefit from a restart after adding a reservation.