Most home devices get their IP address automatically via DHCP, which is fine until you need a printer, NAS drive, media server, or PC to always be reachable at the same address. This guide explains when a static IP is genuinely useful, the safer router-based alternative most people should use instead, and the exact steps to configure one manually on both Windows and macOS.
What a Static IP Actually Does
Every device on your network gets assigned an IP address (something like 192.168.1.34) so other devices and your router know how to reach it. By default, your router's DHCP server hands these out automatically and can reassign them over time. A static IP fixes one device to the same address permanently, which matters when you need to:
- Set up port forwarding for a game server, security camera system, or remote desktop access
- Reliably connect to a network printer or NAS (network-attached storage) without it changing address
- Run a home media server (Plex, Jellyfin) that other devices reference by a fixed address
- Configure firewall rules or parental controls tied to a specific device
Pro tip: Before manually configuring a static IP on the device itself, check whether your router offers a DHCP reservation (sometimes called "static lease" or "address reservation") instead. This achieves the same result β the device always gets the same address β but the router still manages it centrally, which avoids the two most common static IP mistakes: IP conflicts and forgetting to update settings when you change routers.
Option A (Recommended): DHCP Reservation via Your Router
- Find your router's admin address β commonly 192.168.1.1 or 192.168.0.1 (check the sticker on the router, or run
ipconfigon Windows and look at "Default Gateway"). - Log in with the admin credentials (also usually printed on the router label).
- Look for LAN Setup, DHCP Settings, or Address Reservation in the menu β naming varies by brand (BT, Sky, Virgin, TP-Link, Netgear, Asus all use different wording).
- Find your device in the connected clients list, note its MAC address, and add a reservation binding that MAC address to a specific IP, e.g. 192.168.1.50.
- Restart the device (or renew its IP) so it picks up the reserved address.
This method is safer because the router keeps track of which addresses are taken, preventing the IP conflicts that manual static configuration can cause.
Option B: Manual Static IP on Windows
Use this when you need full manual control, such as on a device the router can't manage reservations for, or in a small office setup.
Step 1: Gather Your Network Details First
Open Command Prompt and run:
ipconfig /all
Note down these four values before changing anything:
- IPv4 Address (current address, to base your static one on)
- Subnet Mask (usually 255.255.255.0)
- Default Gateway (your router's address)
- DNS Servers (often the same as the gateway, or 8.8.8.8 / 1.1.1.1 if set manually)
Step 2: Assign the Static IP
- Open Settings > Network & Internet > Ethernet (or Wi-Fi) and click your active connection.
- Under IP assignment, click Edit.
- Change from "Automatic (DHCP)" to Manual.
- Toggle IPv4 on.
- Enter: - IP address: a number outside your router's DHCP range but on the same subnet, e.g. 192.168.1.200 - Subnet mask: 255.255.255.0 - Gateway: your router's address, e.g. 192.168.1.1 - Preferred DNS: 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google), or your router's address
- Click Save.
Warning: Choose an IP address outside your router's DHCP pool (check the DHCP range in your router settings β commonly something like .100 to .199). If you pick an address the router might also hand out automatically, you'll get an IP conflict where two devices fight over the same address, causing one or both to drop off the network intermittently.
Alternative: Control Panel Method (Older Windows / More Detail)
- Open Control Panel > Network and Internet > Network and Sharing Center.
- Click Change adapter settings.
- Right-click your connection and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Choose Use the following IP address and fill in the same four values as above.
- Click OK, then close out of the dialogs.
Option C: Manual Static IP on macOS
- Open System Settings > Network (System Preferences on older macOS versions).
- Select your active connection (Wi-Fi or Ethernet) in the sidebar and click Detailsβ¦.
- Go to the TCP/IP tab.
- Change Configure IPv4 from "Using DHCP" to Manually.
- Enter: - IP Address: e.g. 192.168.1.200 - Subnet Mask: 255.255.255.0 - Router: your router's address, e.g. 192.168.1.1
- Switch to the DNS tab and add a DNS server (1.1.1.1 or 8.8.8.8) if not already listed.
- Click OK, then Apply.
Verifying It Worked
- On Windows, run
ipconfigand confirm the IPv4 address matches what you entered. - On macOS, run
ifconfigin Terminal and check the same. - Test connectivity with
ping 8.8.8.8β if replies come back, your gateway and internet routing are working. - Test name resolution with
ping google.comβ if this fails but the numeric ping worked, your DNS entry is wrong. - From another device on the network, try
ping 192.168.1.200(using your chosen address) to confirm the static IP is reachable.
Common Problems and Fixes
- "Limited connectivity" or no internet after setting a static IP: double-check the gateway and subnet mask exactly match your router's values β a typo here is the most common cause.
- Works at home but breaks when you take a laptop elsewhere: a manually configured static IP doesn't adapt to other networks. Either switch back to automatic (DHCP) before travelling, or set up a second network profile β for most laptops, a router-side DHCP reservation avoids this problem entirely since it only applies at home.
- IP address conflict warning: another device already has that address. Choose a different, unused one, ideally outside the router's DHCP range.
- Static IP stops working after replacing your router: manual settings don't transfer automatically β you'll need to re-enter the new router's gateway address, and possibly choose a new IP if the new router uses a different subnet (e.g. 192.168.0.x instead of 192.168.1.x).
For most home users, a router-side DHCP reservation gives you all the benefits of a static IP without the maintenance overhead β reserve manual configuration for situations where you need guaranteed control at the device level.
Was this guide helpful? Explore more Networking & Wi-Fi Issues guides, or browse all Operating System & Software articles.