What a static IP address is and why you might need one

A static IP address is an address that stays the same every time your device connects to the network, rather than changing each time you restart or reconnect. Your router normally assigns a new address automatically — this is called DHCP — but you can override that and pick one yourself.

You might want a static IP if you're running a home server, setting up a printer that multiple devices need to find, hosting a game server, or accessing your computer remotely. Any service that needs to know where to find your device benefits from an address that doesn't shift around. Without a static IP, the address your device had yesterday might belong to a different device today, and services stop working.

Setting a static IP is different from port forwarding or changing your public-facing internet address — it's about the address your device uses inside your own network. Most home users don't need this, but if you're troubleshooting a connection problem or setting up a service, it's a straightforward change.

Key Takeaways

  • Static IP addresses stay the same across restarts, unlike the automatic addresses your router normally assigns.
  • You can set a static IP either on the device itself or by reserving an address in your router's settings, and the router method is usually simpler and more reliable.
  • The steps differ between Windows, Mac, and Linux, and between wired and wireless connections.
  • If you set a static IP on your device, pick an address outside the range your router uses for automatic assignment, or conflicts will happen.
  • After you change the setting, restart your device or reconnect to the network to confirm the new address is active.

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

Most routers let you reserve an IP address for a specific device without touching the device itself. This is simpler and more reliable than setting a static IP on the device, because your router stays in control and won't accidentally assign that address to something else.

Log into your router's admin panel — usually by typing 192.168.1.1 or 192.168.0.1 into a browser, or through a manufacturer app. Look for a section called DHCP Reservation, Static DHCP, or Reserved Addresses. You'll need the device's MAC address (a hardware identifier), which you can find in your device's network settings or by looking at the list of connected devices in your router's panel. Select the device, pick an unused address in your network range, and save.

The advantage here is that your router enforces the reservation. Even if the device tries to request a different address, the router will hand it the reserved one. This method works across restarts and reconnections without any setup on the device side.

Setting a static IP on Windows

On Windows, you can set a static IP through Settings or the command line. Open Settings, go to Network & Internet, then Status. Click "Change adapter options," right-click your network connection (Ethernet or Wi-Fi), and select Properties. Double-click "Internet Protocol Version 4 (TCP/IPv4)."

Select "Use the following IP address" and enter an address in your network's range — for example, if your router uses 192.168.1.1, pick something like 192.168.1.100. Enter your subnet mask (usually 255.255.255.0), your router's address as the default gateway, and a DNS server address (8.8.8.8 and 8.8.4.4 are Google's public DNS servers, or use your router's address). Click OK and restart your network connection.

If you use IPv6, you can set a static address there too by selecting "Use the following IPv6 address" in the same window. Most home networks still use IPv4, so start there if you're unsure.

Setting a static IP on Mac

On Mac, go to System Settings, then Network. Select your connection (Wi-Fi or Ethernet) and click "Details." Go to the TCP/IP tab and change "Configure IPv4" from Automatic to Manual. Enter your static IP address, subnet mask, and router address in the fields provided.

If your router uses 192.168.1.1, you might set your device to 192.168.1.100. The subnet mask is usually 255.255.255.0. For DNS servers, click the DNS tab and add your router's address or a public DNS server like 8.8.8.8. Click OK to save, and your Mac will use the static address on the next connection.

You can verify the change by opening System Settings again and checking that the address shown matches what you entered. If it doesn't, restart your network connection and check again.

Setting a static IP on Linux

Linux distributions vary, but most modern systems use NetworkManager or netplan for network configuration. On Ubuntu and Debian-based systems, edit your netplan configuration file — usually located at /etc/netplan/01-netcfg.yaml — and specify your static address, gateway, and DNS servers in YAML format.

The file structure looks like this: under your network interface name, set dhcp4 to false, then add addresses, gateway4, and nameservers. After editing, run sudo netplan apply to activate the changes. If you're using a different distribution or desktop environment, the method may differ — check your system's documentation for your specific setup.

On systems with NetworkManager, you can also use the graphical network settings or the nmcli command-line tool to set a static address without editing files directly.

Choosing an IP address that won't conflict

When you pick a static IP, it must be in the same range as your network but outside the pool your router uses for automatic assignment. Most home routers use addresses like 192.168.1.1 through 192.168.1.254, and they typically reserve the first 100 or so for automatic assignment — so picking something like 192.168.1.200 or higher is usually safe.

Check your router's settings to see what range it uses for DHCP. If you pick an address that's still in the automatic pool, your router might assign it to another device, and both devices will have the same address — this breaks both connections. If you're unsure, the router reservation method avoids this problem entirely, since the router knows not to assign that address to anything else.

Write down the address you choose and keep it somewhere you can find it later. If you need to troubleshoot or change it, you'll need to remember what you set.

Verifying your static IP is working

After you set a static IP, restart your device or disconnect and reconnect to the network. Then check that the address stuck. On Windows, open Command Prompt and type ipconfig. On Mac or Linux, open Terminal and type ifconfig or ip addr. Look for the address you set — if it matches, the static IP is active.

If the address doesn't match, the device may have reverted to automatic assignment. Go back to your settings and confirm you saved the changes. If you set it on the device and it's not working, try the router reservation method instead — it's more reliable and overrides any device-level settings.

Test that services depending on the static IP can reach your device. If you set this up for a printer or server, try connecting to it from another device on the network using the address you chose. If it works, the static IP is correctly configured.

Frequently Asked Questions

What's the difference between a static IP and a public IP address?

A static IP is an address that doesn't change on your local network — the one inside your home or office. A public IP is the address your internet provider assigns to your router, which the outside internet sees. You can have a static local IP without a static public IP, and most home users don't need a static public address.

Will setting a static IP make my internet faster?

No. A static IP doesn't affect speed — it only determines whether your device keeps the same address. Speed depends on your connection type, router quality, and internet plan. Set a static IP only if you need a service to find your device reliably.

Can I set a static IP on my phone or tablet?

Yes, but it's rarely necessary. Most phones and tablets work fine with automatic addresses. If you need one, use your router's reservation feature instead of changing the phone's settings — it's simpler and won't interfere with switching between networks.

What happens if two devices have the same static IP address?

Both devices will have connection problems, and network traffic meant for one may go to the other. This is called an IP conflict. If this happens, change one device's address to something unused, or use your router's reservation feature to prevent conflicts from occurring.

Do I need a static IP for Wi-Fi or only for wired connections?

You can set a static IP for either Wi-Fi or wired connections. The steps are the same. If you're setting it on the device itself, make sure you're in the right network settings tab for whichever connection type you're using.