Static vs Dynamic IP Addresses: What Is the Difference? - featured illustration

Static vs Dynamic IP Addresses: What Is the Difference?

Every device that talks IP needs an address, and there are two main ways it gets one. Either a server hands it out automatically and it can change (a dynamic address), or someone fixes it by hand and it stays put (a static address). Which one you need depends on what the device does. Your phone is happiest with a dynamic address; a file server, printer or camera you need to reach every time usually is not. This guide explains the difference, when to choose each, and how to do it safely, including the better option most people overlook: a DHCP reservation.

Dynamic IP addresses and DHCP

A dynamic address is assigned by a DHCP server (Dynamic Host Configuration Protocol), which on a home or small office network is normally the router. When a device joins the network it asks for an address, and the server picks an unused one from a range (the pool) and lends it for a period called a lease, along with the default gateway and DNS server. The device normally tries to renew the lease before it expires and keeps the same address; if it cannot renew, it must stop using the address and may get a different one later.

The benefits are simple: no manual work, no risk of two devices claiming the same address, and easy reuse of addresses as devices come and go. That is why DHCP is the default almost everywhere. The drawback is that a device’s address can change, which is awkward if something else needs to find it at a known address.

Static IP addresses

A static address is fixed. It is set on the device itself, or reserved for it on the router, and does not change. The benefits are predictability for anything that must be found consistently: servers, network printers, NAS boxes, security cameras, and devices referred to in firewall rules, port forwards or monitoring. The drawbacks are the manual effort and the risk of mistakes. If you set a static address that is also inside the DHCP pool, the router may hand the same address to another device and cause an address conflict, which shows up as intermittent connectivity for both.

Two meanings of “static”: inside and outside

People mix up two separate things.

  • Private (LAN) addresses are the ones inside your home or office, from ranges like 192.168.x.x. You control these, and you can make them static.
  • Public (WAN) addresses are the one your internet provider gives your connection. Most home connections have a dynamic public address that can change when the router restarts or the provider decides. A static public address is usually a paid extra, useful if you host a server from home or need a fixed address for remote access.

If you only need to reach a home device from outside and your public address changes, a dynamic DNS service, which updates a hostname when the address changes, is often a cheaper answer than a static public address.

Static vs dynamic at a glance

Dynamic (DHCP) Static
Set by DHCP server, automatically You, manually
Can change Yes, if it gets a new lease No, until you change it
Best for Phones, laptops, guests, most devices Servers, printers, NAS, cameras
Risk Address changes break fixed references Conflicts and typing mistakes
Effort None Manual, and must be documented

The better option: a DHCP reservation

Instead of typing a fixed address into the device, tell the router “always give this device’s MAC address this IP”. The device still uses DHCP, but always receives the same address, so it behaves like a static one and stays managed in one place. This avoids conflicts (the router knows the address is taken) and keeps the configuration in the router, where you can see all your fixed addresses together. Look for “DHCP reservation”, “static lease” or “address reservation” in the router’s settings.

How to check and set addresses

See whether your address is dynamic

ipconfig /all

On Windows, look for DHCP Enabled: Yes and the Lease Obtained and Lease Expires lines. On Linux, ip -br address shows the address, and your network configuration tells you whether it came from DHCP.

To force a fresh lease on Windows, use ipconfig /release followed by ipconfig /renew.

Set a static address on Windows 11

Go to Settings, Network & internet, choose Wi-Fi or Ethernet, open the connection’s properties and next to IP assignment choose Edit, then Manual. Enter the address, subnet prefix length (24 for a typical home network), the gateway (your router) and DNS servers. Pick an address outside the router’s DHCP pool.

Set a static address on Ubuntu (Netplan)

network:
  version: 2
  ethernets:
    enp3s0:
      dhcp4: false
      addresses: [192.168.1.50/24]
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses: [1.1.1.1, 8.8.8.8]
  • enp3s0 is the interface name; find yours with ip -br link.
  • dhcp4: false turns off DHCPv4 (IPv4 address assignment) for that interface.
  • addresses sets the fixed IP with its prefix length, and routes sets the default gateway.
  • nameservers lists the DNS servers.

Test it with sudo netplan try, which applies the change temporarily and rolls it back after a timeout unless you confirm. If the connection still works, press Enter to accept and keep the change; a separate netplan apply is not needed. The automatic rollback has limits, so keep console or out-of-band access available when you change the network settings of a remote server. Configuration files live in /etc/netplan/.

Good habits

  • Keep a simple list of your static addresses and what they belong to.
  • Choose fixed addresses outside the DHCP pool, or use reservations.
  • Give servers and printers a static or reserved address; leave everything else on DHCP.
  • Do not assume a static address makes a device more secure or less secure; access control comes from firewalls and passwords, not from the address type.

Common questions

Does a static IP make my internet faster?

No. It only fixes the address. Speed depends on your connection and network.

Is a static IP less private?

A fixed public address is easier to associate with you over time, which some people care about. On the inside of your network it makes no difference.

What happens if two devices have the same address?

Both can lose connectivity intermittently, because the network cannot tell which one should receive the traffic. Windows and most systems show an “IP address conflict” warning. Fix it by giving one device a different address, or by using a reservation.

Keep reading

Sources

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *