How to Set Static IP on Any Device: A Complete Guide

Updated on Oct 16, 2026 by Shauli Zacks

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

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: 

  1. Sign in to your router’s administration page.
  2. Open the DHCP or LAN settings.
  3. Find DHCP Reservation, Address Reservation, or Static Lease.
  4. Select your device or enter its MAC address.
  5. Choose the IP address you want to reserve.
  6. 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 ConfigurationDHCP Reservation
Configured on the deviceConfigured on the router
Device uses the address without asking DHCPRouter assigns the reserved address through DHCP
Must be updated manually if network settings changeRouter can supply updated gateway and DNS settings
Useful when you can’t depend on the router’s DHCP serverEasier to manage on most home networks
Settings may cause problems when using another networkDevice 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.1 or 192.168.1.1.
  • Subnet mask or prefix length: Most home IPv4 networks use 255.255.255.0 (which is equivalent to a /24 prefix 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.

ipconfig command line tool on Windows.

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.100 to 192.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.0 on a /24 network
  • The broadcast address, such as 192.168.1.255 on a /24 network

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

AdvantagesDisadvantages
✅ 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.

  1. Open Settings and select Network & internet.
    Windows Network and internet settings.
  2. Choose Wi-Fi or Ethernet, depending on your connection.Selecting Wi-Fi or Ethernet
  3. Open the properties for your active network.
    The Windows properties menu for an active network.
  4. Find IP assignment and select Edit.
    Editing the IP assignment on Windows.
  5. Change Automatic (DHCP) to Manual.
    Change AUtomatic DHCP to manual.
  6. Turn on IPv4 and enter your new static IP address, subnet prefix length, gateway, and DNS servers.
    Enter the new data for your IP address.
  7. 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.

  1. Open System Settings and click Network.
    The menu page on Mac.
  2. Select your active Wi-Fi or Ethernet connection and click Details.
    Selecting the active internet connection.
  3. Select TCP/IP.
    Select the TCP/IP option.
  4. Open the Configure IPv4 menu and choose Manually.
    Selecting the manual option for configuring IPv4.
  5. Enter the IP address, subnet mask, and router address.
    Adding the new IP address on macOS.
  6. Open DNS, add your DNS server addresses if necessary, then click OK and Apply.
    Editing the DNS server number.

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:

  1. Open Settings and tap Wi-Fi.
    The iOS settings menu.
  2. Select the settings icon beside your current network.
    Selecting the Wi-Fi network.
  3. Next to the IP setting, click on DHCP and switch it to Static.
    Changing from DHCP to static.
  4. 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.
    Save the changes to updated IP address and related data.

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.

  1. Open Settings and tap Wi-Fi.
    The iOS settings menu.
  2. Tap the information icon beside your connected network.
    The Wi-Fi setting for iOS.
  3. Select Configure IP under IPv4 Address.
    Configure IP address on iOS
  4. Choose Manual.
    Select Manual option.
  5. Enter the IP address, subnet mask, and router address.
    Enter the new IP address.
  6. 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:

  1. Open Settings and select Network or Wi-Fi.
    The Settings menu on Linux
  2. Click the settings icon beside your active connection.
    Editing the Wi-Fi settings.
  3. Open the IPv4 tab and change the IPv4 method from Automatic (DHCP) to Manual.
    Setting changed to Automatic (DHCP)
  4. Enter the IP address, netmask or prefix, gateway, and DNS server. Then click Apply.
    Enter the new IP address and related data.
  5. 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.

TypeWhat It IdentifiesWho Assigns ItCommon Uses
Static private IPA device on your local networkYou or your routerPrinters, local servers, port forwarding, cameras
Static public IPYour internet connectionYour internet service provider (ISP) or another serviceRemote 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.