How to Create a Static IP Address: A Complete Setup Guide
A static IP address is one that never changes — your device always gets the same address every time it connects to a network. That sounds simple enough, but the how varies quite a bit depending on whether you're working on a home network, a business setup, or trying to make a server accessible from the internet. Here's what you actually need to know.
What Is a Static IP and Why Would You Need One?
Every device on a network gets an IP address — a numerical label that lets devices find and communicate with each other. By default, most routers assign these addresses dynamically using a protocol called DHCP (Dynamic Host Configuration Protocol). That means the address can change each time the device reconnects.
A static IP locks that address in place. Common reasons to set one up include:
- Hosting a home server, NAS, or media server
- Setting up remote desktop access
- Port forwarding (for gaming, security cameras, or self-hosted services)
- Running a website or application from your own hardware
- Avoiding the hassle of tracking a device whose address keeps shifting
There are two distinct levels where you might create a static IP: within your local network (a private static IP) and on the public internet (a public static IP). These are different problems with different solutions.
Private Static IP vs. Public Static IP 🌐
| Type | Scope | Who Controls It | Common Use Case |
|---|---|---|---|
| Private Static IP | Inside your home/office network | You (via router or device settings) | Servers, printers, port forwarding |
| Public Static IP | Visible on the internet | Your ISP | Hosting websites, remote business access |
Most home setups only need a private static IP. A public one requires contacting your internet service provider, which may involve additional fees or a business-tier plan.
Method 1: Assign a Static IP Through Your Router (DHCP Reservation)
This is the most reliable approach for home networks and requires no changes on the device itself. It works by telling your router to always assign the same IP to a specific device, identified by its MAC address (a unique hardware identifier baked into every network adapter).
Steps:
- Log into your router's admin panel — typically by typing 192.168.1.1 or 192.168.0.1 into a browser
- Find the DHCP settings or LAN settings section
- Look for DHCP Reservation, Address Reservation, or Static DHCP (terminology varies by router brand)
- Enter the device's MAC address and the IP address you want to reserve
- Save and restart the router if prompted
The specific menu path differs across router firmware — Asus, TP-Link, Netgear, and others all use different interfaces. The key terms to look for are "reservation" or "static lease."
Method 2: Configure a Static IP Directly on the Device
You can also set a static IP at the operating system level, bypassing DHCP entirely. This works on any device but requires you to enter the correct subnet mask, default gateway, and DNS servers manually — get these wrong and the device loses network access.
On Windows:
- Go to Settings → Network & Internet → Change adapter options
- Right-click your active connection → Properties
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties
- Enter your chosen IP address, subnet mask (usually 255.255.255.0), and gateway (your router's IP)
On macOS:
- System Settings → Network → [Your Connection] → Details → TCP/IP
- Change Configure IPv4 to Manually and fill in the values
On Linux:
- Most distributions use either NetworkManager (GUI method) or direct editing of network configuration files like /etc/network/interfaces or netplan YAML files, depending on the distro
On Android/iOS:
- Both platforms let you set a static IP under the Wi-Fi network details for a specific network — look for IP Settings (Android) or the i icon next to the network name (iOS)
Method 3: Get a Public Static IP from Your ISP
If you need a consistent address visible from outside your home network — say, for running a web server or accessing your home network remotely — you need your ISP to assign a public static IP.
Most residential ISPs provide dynamic public IPs, which change periodically. To get a static one:
- Contact your ISP directly and ask about static IP plans
- This is often available on business or small business plans
- Some ISPs charge a monthly fee; others include it at higher tiers
- As an alternative, many users rely on Dynamic DNS (DDNS) services, which automatically update a domain name to point to your current dynamic IP — this sidesteps the need for a true static public IP in many cases 💡
Key Variables That Change the Right Approach
The "best" method depends on factors specific to your setup:
- What device you're configuring — a server, a printer, a gaming console, or a security camera each has different implications
- Your router's firmware — some routers have limited DHCP reservation features or unintuitive interfaces
- Whether you need external access — local static IPs don't help if the goal is remote access from the internet
- Your OS version — the menu paths for manual IP configuration shift across Windows 10, Windows 11, macOS Ventura, and newer releases
- IPv4 vs. IPv6 — most home setups still rely on IPv4, but IPv6 changes how addressing works significantly, and some ISPs are pushing toward it
- Technical comfort level — DHCP reservation is forgiving; manual device-level configuration requires accurate values or you'll break connectivity
Setting up the wrong IP range, reusing an address already assigned to another device, or misconfiguring the subnet can all cause conflicts. Planning the address you reserve so it falls outside the router's automatic DHCP range avoids most collision problems.
How straightforward this process turns out to be — and which method actually fits — comes down to the specifics of your network, your hardware, and what you're ultimately trying to accomplish with that fixed address.