How to Set Static IP on Any Device: A Complete Guide
Setting a static IP gives your device a consistent address on your network, making it easier for other devices and services to find it. This can be useful when you’re running a server, accessing another device remotely, or setting up port forwarding, which can be problematic with a changing IP address.
Learn how a local static IP differs from a public IP address. We’ll also cover how to set a static IP on Windows, macOS, Linux, Android, and iOS devices. Note that the methods outlined below configure a private IP address within your local network. They don’t change the public IP address websites and online services see.
- Quick Guide: How to Set a Static IP Address
- Static IP vs. DHCP Reservation
- What You Need to Know Before Setting Up a Static IP
- How to Set a Static IP Address on Windows 11
- How to Set a Static IP Address on macOS
- How to Set a Static IP Address on Android
- How to Set a Static IP Address on iPhone or iPad
- How to Set a Static IP Address on Linux
- Static Private IP vs. Static Public IP
- Get a Consistent Public IP Address With PIA VPN
- FAQ
Quick Guide: How to Set a Static IP Address
For most home networks, the simplest option is to create a DHCP reservation through your router. This keeps your device set to automatic configuration while telling the router to assign it the same private IP address each time it connects.
The exact path varies by router brand and model, but the basic steps are:
- Sign in to your router’s administration page.
- Open the DHCP or LAN settings.
- Find DHCP Reservation, Address Reservation, or Static Lease.
- Select your device or enter its MAC address.
- Choose the IP address you want to reserve.
- Save the settings and reconnect the device.
If you can’t access the router, you can set a static IP on your device.
Jump to step-by-step guides: Windows 11 | macOS | Android | iPhone and iPad | Linux
Static IP vs. DHCP Reservation
Setting up a static IP on your device or your router can assign the same private IP each time it connects, but the two methods work differently.
| Static IP Configuration | DHCP Reservation |
| Configured on the device | Configured on the router |
| Device uses the address without asking DHCP | Router assigns the reserved address through DHCP |
| Must be updated manually if network settings change | Router can supply updated gateway and DNS settings |
| Useful when you can’t depend on the router’s DHCP server | Easier to manage on most home networks |
| Settings may cause problems when using another network | Device can keep using automatic settings elsewhere |
A Dynamic Host Configuration Protocol (DHCP) reservation is generally the simpler choice for home networks. It reduces the risk of address conflicts and keeps network settings centralized on the router.
Manual configuration may make more sense for servers, network equipment, or devices that need to retain their local address even when DHCP is unavailable.
What You Need to Know Before Setting Up a Static IP
Make a note of your current network configuration details before changing anything. Using incorrect settings can prevent your device from connecting to your router or the internet.
You’ll need:
- Current private IP address: The address currently assigned to your device.
- Default gateway: Your router’s private IP address, often
192.168.0.1or192.168.1.1. - Subnet mask or prefix length: Most home IPv4 networks use
255.255.255.0(which is equivalent to a/24prefix in networking shorthand). - Domain Name System (DNS) servers: You can often use your router’s address or your preferred DNS provider.
- DHCP range: The group of addresses your router assigns to devices.
You can find most of this information with the ipconfig command line tool on Windows, ip route and ip addr on Linux, or the network details shown in your device settings.

Keeping a copy of the original values makes it much easier to restore your connection if the new settings don’t work.
How to Choose an Available Static IP Address
Your static IP must belong to the same subnet as your router, but it shouldn’t already be assigned to another device.
For example, suppose your network uses these settings:
- Router:
192.168.1.1 - Subnet mask:
255.255.255.0 - DHCP range:
192.168.1.100to192.168.1.200
You could potentially assign your device 192.168.1.50. It’s on the same subnet but outside the range the router uses for automatic assignments.
Don’t use:
- Your router’s address
- An address already assigned to another device
- The network address, such as
192.168.1.0on a/24network - The broadcast address, such as
192.168.1.255on a/24network
Using an address outside the DHCP pool helps avoid conflicts, but first check your router’s connected device list to confirm that another device isn’t already using it. You can also create a DHCP reservation instead of configuring the address.
Advantages and Disadvantages of a Static IP Address
| Advantages | Disadvantages |
| ✅ Keeps local devices easy to locate | ❌ Requires manual setup |
| ✅ Supports stable port-forwarding rules | ❌ Incorrect details can break connectivity |
| ✅ Simplifies access to printers and servers | ❌ Can create conflicts if you reuse the address |
| ✅ Makes some remote-access configurations easier | ❌ May need updating following network changes |
| ✅ Supports IP allowlisting when using a static public IP | ❌ Static public IPs may cost extra |
A fixed public IP can be scanned repeatedly because it doesn’t change, but that doesn’t make it unsafe. The real risk depends on which services and ports you expose, how you configure them, and whether you keep your software, firewall, and authentication controls up to date.
How to Set a Static IP Address on Windows 11
Windows lets you configure separate manual settings for Ethernet and Wi-Fi connections.
- Open Settings and select Network & internet.

- Choose Wi-Fi or Ethernet, depending on your connection.

- Open the properties for your active network.

- Find IP assignment and select Edit.

- Change Automatic (DHCP) to Manual.

- Turn on IPv4 and enter your new static IP address, subnet prefix length, gateway, and DNS servers.

- Click Save.
Open Command Prompt and run ipconfig to confirm that Windows is using the new address. You can also run ping followed by your router’s IP address to check whether your device can reach the router.
How to Set a Static IP Address on macOS
The exact labels may differ slightly depending on your macOS version.
- Open System Settings and click Network.

- Select your active Wi-Fi or Ethernet connection and click Details.

- Select TCP/IP.

- Open the Configure IPv4 menu and choose Manually.

- Enter the IP address, subnet mask, and router address.

- Open DNS, add your DNS server addresses if necessary, then click OK and Apply.

To restore automatic addressing later, return to the TCP/IP settings and select Using DHCP.
How to Set a Static IP Address on Android
Android menus vary between manufacturers and software versions. The following path is common on Samsung devices and many other Android phones:
- Open Settings and tap Wi-Fi.
- Select the settings icon beside your current network.
- Next to the IP setting, click on DHCP and switch it to Static.
- Enter the IP address, gateway, network prefix length, and DNS addresses. When you’re done, tap the checkmark icon at the top of the page to save your changes.
Android normally saves the settings for that specific Wi-Fi network only. Your phone can continue using automatic addressing on other networks.
If Android fills in some fields, check them carefully before saving. The suggested address may still fall within the router’s DHCP range.
How to Set a Static IP Address on iPhone or iPad
You can assign a manual IPv4 address to an individual Wi-Fi network in iOS and iPadOS.
- Open Settings and tap Wi-Fi.
- Tap the information icon beside your connected network.
- Select Configure IP under IPv4 Address.
- Choose Manual.
- Enter the IP address, subnet mask, and router address.
- Tap Save.
If you also want to change the DNS servers, select Configure DNS, choose Manual, and enter the addresses you want to use.
These settings only apply to the selected Wi-Fi network. They won’t set a static address for mobile data or other Wi-Fi connections.
How to Set a Static IP Address on Linux
Steps differ between distributions and desktop environments. On Linux systems that use NetworkManager, you can usually configure the address through the graphical settings:
- Open Settings and select Network or Wi-Fi.

- Click the settings icon beside your active connection.

- Open the IPv4 tab and change the IPv4 method from Automatic (DHCP) to Manual.

- Enter the IP address, netmask or prefix, gateway, and DNS server. Then click Apply.

- Disconnect and reconnect to the network.
You can run ip addr to view the assigned addresses and ip route to check the default gateway.
Server distributions and systems that don’t use NetworkManager may require configuration through Netplan, systemd-networkd, or another network management service. Check which service your distribution uses before editing a configuration file.
Static Private IP vs. Static Public IP
The term static IP address can refer to two different types of addresses. Understanding the difference is important because they’re configured in different places and serve different purposes.
| Type | What It Identifies | Who Assigns It | Common Uses |
| Static private IP | A device on your local network | You or your router | Printers, local servers, port forwarding, cameras |
| Static public IP | Your internet connection | Your internet service provider (ISP) or another service | Remote access, public servers, IP allowlisting |
A private IP only works inside your home or business network. Common private IPv4 address ranges include 192.168.x.x, 10.x.x.x, and 172.16.x.x through 172.31.x.x.
Your public IP address identifies your connection to websites and other internet services. Manually entering a private address in your device settings won’t change the public IP assigned by your ISP.
For example, a dedicated IP address from Private Internet Access (PIA) VPN gives you an exclusive, consistent public-facing VPN IP address. It doesn’t replace the private address your router assigns to your device.
Get a Consistent Public IP Address With PIA VPN
Setting a static private IP makes your device easier to find on your local network, but it doesn’t change the public IP address websites see. If you need a consistent public-facing address while using a VPN, PIA VPN’s Dedicated IP add-on gives you an IP address reserved exclusively for you.
A dedicated IP address can be useful for IP allowlisting, remote work systems, and reducing verification prompts associated with changing or shared IP addresses. PIA VPN uses a privacy-first token-based system designed to keep your dedicated IP separate from your VPN account.
FAQ
Can I set a static IP Address for free?
Yes, you can assign a static private IP address or create a DHCP reservation on your own network without paying a fee. A static public IP is different and may require an additional payment to your ISP or other provider. Alternatively, dynamic DNS can provide a consistent hostname if you don’t need a permanently assigned public address.
Is a static IP faster than a dynamic IP?
No, a static IP isn’t necessarily faster than a dynamic IP. An address change doesn’t affect your connection speed. Factors like your internet plan, network congestion, router, Wi-Fi signal, server distance, VPN, and routing can affect performance.
Should I use a static IP or DHCP?
DHCP is the better default for most devices because it configures network details automatically. Use a static IP or DHCP reservation when a printer, server, camera, or other device needs a predictable local address. A DHCP reservation is often easier to manage on a home network.
Can two devices have the same static IP address?
No, two devices shouldn’t use the same IP address on the same network. Doing so creates an IP conflict that may prevent one or both devices from communicating. Check the router’s device list before assigning an address. It’s fine and normal for two devices to share the same static public IP address, though.
Does a static IP change my public IP address?
No, setting a static private IP doesn’t affect your public IP address, since they’re controlled separately. To obtain a static public IP, contact your ISP or use a service that provides a consistent public-facing address, like PIA VPN’s Dedicated IP add-on.
Is a static IP the same as a dedicated IP?
No, “static” means the address doesn’t change, while “dedicated” means it’s reserved for one user or account. You can share a static IP address with other users, so it’s not necessarily dedicated. On the other hand, dedicated VPN IP addresses generally remain consistent for the subscriber using them.