How to Set an IP Address: Static, Dynamic, and Everything in Between
Every device on a network needs an IP address to send and receive data — it's the digital equivalent of a mailing address. Whether you're troubleshooting connectivity issues, setting up a home server, configuring a printer, or locking down a network, knowing how to set an IP address is a foundational networking skill. The process varies significantly depending on your operating system, device type, and whether you need a static or dynamic address.
What an IP Address Actually Does
An IP address (Internet Protocol address) is a numerical label assigned to every device connected to a network. It tells other devices — and the internet — where to send data. Most home networks use IPv4 addresses, which look like 192.168.1.105, while newer networks increasingly support IPv6, which uses a longer alphanumeric format.
Two types of IP assignment matter here:
- Dynamic IP (DHCP): Your router automatically assigns an address each time a device connects. This is the default for most home setups and requires no manual configuration.
- Static IP: You manually assign a fixed address that never changes. This is common for servers, printers, smart home hubs, and any device you need to reach consistently.
How to Set a Static IP Address on Windows
On Windows 10 and 11, you can assign a static IP through the Network Settings panel or the older Control Panel — both lead to the same result.
- Open Settings → Network & Internet
- Select your active connection (Ethernet or Wi-Fi) and click Properties
- Under IP settings, click Edit
- Switch from Automatic (DHCP) to Manual
- Toggle on IPv4 and enter your desired IP address, subnet mask, and default gateway
Key values you'll need:
- IP address: Choose one outside your router's DHCP range (e.g., 192.168.1.200)
- Subnet mask: Typically 255.255.255.0 for home networks
- Default gateway: Your router's IP address, usually 192.168.1.1 or 192.168.0.1
- DNS servers: Common choices include 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare)
How to Set a Static IP Address on macOS
- Open System Settings (or System Preferences) → Network
- Select your active network interface
- Click Details (macOS Ventura and later) or Advanced
- Navigate to the TCP/IP tab
- Change Configure IPv4 from Using DHCP to Manually
- Enter your IP address, subnet mask, and router address
The values follow the same logic as Windows — your chosen IP should be on the same subnet as your router but outside the DHCP pool to avoid conflicts.
Setting an IP Address on Linux 🖥️
Linux offers multiple methods depending on your distribution and desktop environment:
- GUI method: Most distributions include a Network Manager applet in the system tray. Right-click your connection, choose Edit, and switch the IPv4 method to Manual.
- Command line (temporary): sudo ip addr add 192.168.1.200/24 dev eth0
- Permanent configuration: Edit the appropriate file in /etc/netplan/ (Ubuntu) or /etc/network/interfaces (Debian-based systems)
Temporary changes set via the command line reset after a reboot. For persistent settings, file-based configuration is necessary.
Assigning a Static IP via Your Router (DHCP Reservation)
An alternative to configuring each device individually is DHCP reservation (sometimes called a static DHCP lease) at the router level. This tells your router to always assign the same IP address to a specific device based on its MAC address.
| Method | Where Configured | Survives Device Reset? | Best For |
|---|---|---|---|
| Device-level static IP | On the device itself | Yes | Servers, headless devices |
| DHCP reservation | On the router | No (device still uses DHCP) | Printers, smart TVs, IoT devices |
DHCP reservation is often the cleaner approach for home networks — the device continues using DHCP (no manual configuration needed on the device), but it always receives the same address. Access this through your router's admin panel, typically at 192.168.1.1 or 192.168.0.1.
Setting an IP Address on Mobile Devices
Android: Go to Settings → Wi-Fi, long-press your network, select Modify Network, then switch IP settings from DHCP to Static.
iOS/iPadOS: Go to Settings → Wi-Fi, tap the ℹ️ icon next to your network, select Configure IP, then choose Manual.
Both platforms require the same information: IP address, subnet mask, gateway, and DNS servers.
Variables That Determine the Right Approach
The "correct" method isn't the same for everyone. Several factors shape what makes sense:
- Device type: Headless servers and network printers benefit most from static IPs. Laptops and phones that move between networks are better left on DHCP.
- Router compatibility: Some older or ISP-provided routers have limited DHCP reservation features, pushing users toward device-level configuration.
- Network size: On large networks with many devices, IP planning becomes critical to avoid conflicts. On small home networks, a few reserved addresses usually suffice.
- Technical comfort level: Router-level DHCP reservation is generally more beginner-friendly; command-line Linux configuration assumes comfort with terminal tools.
- Use case: Remote access, self-hosting, gaming servers, and networked storage all have stronger reasons to need a fixed address than standard browsing devices.
Avoiding Common IP Conflicts
Assigning an IP that your router might also hand out via DHCP causes address conflicts — two devices end up with the same address, and both lose connectivity. Before assigning a static IP:
- Check your router's DHCP range (e.g., 192.168.1.100–192.168.1.199)
- Choose an address outside that range but within the same subnet
- Or configure a DHCP reservation before assigning the address on the device
The right IP address setup depends heavily on what your network looks like today, what devices you're working with, and what you're trying to accomplish — and those details sit entirely on your side of the screen.