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 your network. Most home networks use dynamic addresses instead — your router hands out a different address each time you connect, like a parking lot reassigning spaces. A static address is useful when you want other devices on your network to always find the same machine in the same place: a printer you print to from multiple computers, a security camera you check remotely, or a home server you access by address rather than by name.
You can assign a static IP in two places: on the device itself, or on your router. The router method is simpler and works better for most people, because the router remembers the assignment even if the device restarts. The device method works but requires you to set it up on every machine that needs a static address.
This guide covers both approaches for Windows, Mac, and Linux computers, plus how to do it from your router. You do not need to understand networking deeply — each step tells you exactly what to do and why.
Key Takeaways
- The easiest method is to assign the static address from your router's settings, because the router remembers it and you only set it up once.
- You need your device's MAC address (a unique hardware identifier) to tell your router which device gets which address.
- Static addresses should be outside the range your router normally hands out to new devices, or they will conflict.
- If you set the address on the device itself instead of the router, you must do it on every device and redo it if the device moves to a different network.
How to find your device's MAC address
Before you assign a static IP, you need to identify your device to your router. Every network device has a MAC address — a unique code that looks like AA:BB:CC:DD:EE:FF. Your router uses this to recognize which device is which.
On Windows: Open Command Prompt (right-click the Start menu and select "Command Prompt" or "Windows PowerShell"). Type ipconfig /all and press Enter. Look for the line that says "Physical Address" — that is your MAC address. Write it down.
On Mac: Open System Settings, click "Wi-Fi" or "Network" on the left, then click "Details" or "Advanced". Look for "Wi-Fi Address" — that is your MAC address. If you are using Ethernet, go to System Settings > Network > Ethernet > Details and look for "Ethernet Address".
On Linux: Open a terminal and type ip link show or ifconfig. Look for the line that says "link/ether" or "HWaddr" — the address next to it is your MAC address.
Assigning a static IP from your router (the easier method)
Your router has a settings page where you can tell it to always give a specific IP address to a specific device. This is the best method because you only set it up once and the router remembers it.
First, open your router's settings page. Type 192.168.1.1 or 192.168.0.1 into your web browser's address bar. (If neither works, check the sticker on your router — it will show the correct address.) Log in with your router's username and password. If you have never changed these, they are usually "admin" and "admin" or "admin" and the password on the sticker.
Once you are logged in, look for a section called "DHCP", "Local Network", "LAN Settings", or "Connected Devices". The exact name varies by router brand. Find the device you want to assign an address to — it will be listed by name or MAC address. Select it and look for an option to "Reserve IP", "Assign Static IP", or "Set Fixed Address". Enter the IP address you want to use (something like 192.168.1.100 — make sure the first three numbers match your router's address and the last number is higher than 50 to avoid conflicts). Save the settings.
Your device will get the new address the next time it connects to the network. You can force this by disconnecting and reconnecting to Wi-Fi, or by restarting the device.
Assigning a static IP on the device itself (Windows)
If you prefer to set the address on the device rather than the router, you can do this in Windows Settings. This method works but requires you to repeat the steps on every device and every network the device connects to.
Open Settings and go to Network & Internet > Wi-Fi (or Ethernet if you use a cable). Click "Manage known networks" and select your network name. Scroll down and click "Edit" next to "IP settings". Change the dropdown from "Automatic (DHCP)" to "Manual". Turn on the toggle for IPv4. Enter your static IP address (like 192.168.1.100), your subnet mask (usually 255.255.255.0), and your gateway (usually 192.168.1.1 — the same as your router's address). Click "Save".
Your device will use this address on this network from now on. If you move the device to a different network, you will need to repeat these steps with different numbers.
Assigning a static IP on the device itself (Mac)
On a Mac, you set a static address in System Settings. Like the Windows method, this only works on the specific network you configure it for.
Open System Settings and click "Wi-Fi" or "Network" on the left. Click "Details" or "Advanced". Go to the "TCP/IP" tab. Change "Configure IPv4" from "Automatic (DHCP)" to "Manually". Enter your static IP address (like 192.168.1.100), your subnet mask (usually 255.255.255.0), and your router address (usually 192.168.1.1). Click "OK" and then "Apply".
The address takes effect immediately. If you connect to a different network, you will need to set up a new static address there or switch back to automatic.
Assigning a static IP on the device itself (Linux)
Linux configuration varies by distribution, but most modern systems use a tool called NetworkManager. Open your network settings application (the exact name depends on your desktop environment). Find your network connection, click "Edit", and look for "IPv4 Settings" or "IP Configuration". Change the method from "Automatic (DHCP)" to "Manual". Add your static IP address, subnet mask, and gateway. Save the settings.
If you use the command line instead, you can edit your network configuration file directly. On Ubuntu and Debian systems, this is usually /etc/netplan/. On Red Hat systems, it is /etc/sysconfig/network-scripts/. The exact syntax depends on your system — check your distribution's documentation for the correct format.
Choosing an IP address that will not conflict
When you pick a static address, you need to make sure it does not overlap with addresses your router is already handing out. Most home routers hand out addresses in a range — for example, 192.168.1.100 through 192.168.1.254. If you pick an address in that range, your router might give the same address to a different device, causing a conflict.
The safest approach is to pick an address below the range your router uses. Log into your router settings and look for "DHCP Settings" or "DHCP Range". If your router hands out addresses starting at 192.168.1.100, pick a static address like 192.168.1.50 or lower. If you are not sure what your router's range is, pick something like 192.168.1.10 or 192.168.1.20 — these are almost always safe.
The first three numbers of your static address must match your router's address. If your router is 192.168.1.1, your static address must start with 192.168.1.. If your router is 192.168.0.1, your static address must start with 192.168.0..
Testing your static IP and troubleshooting
Once you have set up your static address, verify that it worked. On Windows, open Command Prompt and type ipconfig. On Mac or Linux, open a terminal and type ifconfig or ip addr. Look for your device's address — it should match the static address you assigned.
If the address is not showing up correctly, disconnect from the network and reconnect. If you set the address on the device itself, restart the device. If you set it on the router, restart the router and then the device.
If your device cannot reach other devices or the internet after assigning a static address, the most common cause is a typo in the gateway address. The gateway should be your router's address — usually 192.168.1.1 or 192.168.0.1. Check that you entered it correctly. If you are still having trouble, switch back to automatic (DHCP) to confirm the device works, then try the static address again with different numbers.
Frequently Asked Questions
What is the difference between setting a static IP on the device versus on the router?
Setting it on the router is easier and more reliable — the router remembers the assignment even if the device restarts or moves to a different network temporarily. Setting it on the device means you have to configure it separately on every machine and every network. Use the router method unless you have a specific reason not to.
Will a static IP address slow down my internet?
No. A static address does not affect speed. It only changes how your device is identified on the network.
Can I use any IP address I want?
No. Your address must be in the same range as your router. If your router is 192.168.1.1, your static address must be 192.168.1.X where X is a number between 1 and 254. It also cannot be the same as your router's address or any address your router is already using.
What happens if two devices have the same static IP address?
Both devices will have trouble connecting to the network. This is called an IP conflict. If this happens, change one of the addresses to something different and restart both devices.
Do I need a static IP for my printer or security camera?
It helps. A static address means you can always reach the device at the same location. Without it, the device's address might change, and you will have to find it again. Setting a static IP on your router takes about two minutes and solves this problem permanently.