Static vs. Dynamic IP Addresses
Compare fixed and changing IP addresses, learn when you really need a static one and see the cheaper ways to get a stable name or device.
Key takeaways
- Dynamic addresses are assigned automatically, usually with DHCP, and can change when a lease ends or equipment restarts.
- A static public address comes from your provider, often as a paid or business-plan option.
- Inside your home, a DHCP reservation is the easiest way to give a printer or server a permanent address.
- Dynamic DNS gives a changing public address a stable name, but it cannot get you past carrier-grade NAT.
- A static address is a convenience for reachability and has little effect on speed.
A static IP address stays the same until someone changes it on purpose. A dynamic IP address is lent to a device for a while and may be different the next time. For most home users, dynamic is fine and requires no attention. You need something stable only when other people or devices have to find yours reliably.
The words apply in two separate places, and mixing them up causes a lot of confusion: the public address your internet provider gives your connection, and the local address each device has inside your network. You can fix one without touching the other.
How dynamic addressing works
When a device joins a network, it asks for settings using DHCP, the Dynamic Host Configuration Protocol. The server replies with an address and a lease time, the period the device may use it. Before the lease runs out, the device asks to renew. In a healthy network it usually gets the same address again, sometimes for months.
The address changes when something interrupts that continuity: the device was away long enough for the lease to expire and the address went to someone else, the server lost its records, or the operator moved customers to a different block.
The message-by-message version is in DHCP explained.
What makes an address static
A static address is configured to stay put. That can happen in three ways:
- Manual configuration on the device. You type the address, prefix length, gateway and DNS servers yourself.
- A reservation on the DHCP server. The device still asks automatically, but the server always hands it the same address.
- A provider assignment. Your ISP sets aside a public address for your account, delivered either by configuration you enter or by its own automatic system.
Technically only some of these are "static" on the device, but all of them achieve the goal: the address doesn't move.
Side by side
| Question | Dynamic | Static |
|---|---|---|
| Setup effort | None | Some configuration |
| Can change unexpectedly | Yes | No, unless reconfigured |
| Good for | Phones, laptops, most homes | Servers, printers, remote access |
| Risk | Others lose track of you | Typos and conflicts if managed by hand |
| Public cost | Usually included | Often extra, sometimes business plans only |
Public addresses from your provider
Most residential connections get a dynamic public address. This lets the provider manage a limited supply and move things around during maintenance. Some connections keep the same address for a very long time anyway, which can look static but carries no promise.
A paid static address is worth considering when:
- you run a mail or other server that outside parties must reach at a fixed address,
- a business partner or service only accepts connections from an allow list of addresses,
- you maintain a site-to-site VPN whose far end expects a fixed peer, or
- you need to control the reverse DNS name for the address, which some providers offer only with static assignments.
It is usually not worth paying for to browse, stream, game or work from home through your employer's VPN. All of those start connections outward, and outward connections work fine from a changing address.
Availability, price and plan requirements differ by provider and change over time, so ask yours directly. Some providers do not offer a static address on residential service at all.
Stable addresses inside your network
Local devices benefit from fixed addresses far more often. A network printer that moves breaks the computers pointing at it. A port-forwarding rule aimed at 192.168.1.40 stops working if the device becomes 192.168.1.57.
The preferred tool is a DHCP reservation: in your router's settings, you tie an address to the device's MAC address (its hardware-level identifier). Everything stays managed in one place, and the device still behaves normally if you take it elsewhere. DHCP reservations walks through it.
Note that many phones and laptops now use a randomized MAC address on Wi-Fi, sometimes a different one per network and sometimes rotating. If a reservation does not stick, check the device's private address setting for your home network.
Setting a static address by hand
Manual setup is useful for the router itself, for servers that must come up even when DHCP is down, and for lab equipment. Follow these rules:
- Pick an address inside your subnet but outside the DHCP pool, so the server never hands it to anyone else.
- Use the same prefix length or subnet mask as the rest of the network.
- Enter the router's address as the default gateway.
- Enter at least one DNS server, or names will not resolve.
- Write it down somewhere you will find it.
On Linux, a temporary test setting looks like this (it disappears on reboot, and eth0 should be your interface name):
sudo ip addr add 192.168.1.230/24 dev eth0 Permanent configuration depends on the distribution's network manager. On Windows and macOS, use the network settings for the adapter and switch from automatic to manual; menu names vary by version. Don't do this on a laptop that travels, because the settings will be wrong on the next network.
What can go wrong
Address conflict. Two devices claim one address, and connections drop intermittently. Check for a manual address that sits inside the DHCP range.
Local network works, internet doesn't. The gateway is missing or wrong. See the default gateway.
Addresses reachable but names fail. DNS servers were left blank after switching to manual.
Everything breaks after a new router. The new router uses a different range. Devices with hand-typed addresses are stranded, while reserved and dynamic ones adapt once you recreate reservations.
Dynamic DNS: a stable name for a moving address
If the goal is "let me reach my house," you may not need a fixed number. A dynamic DNS service gives you a hostname, and a small program on your router or computer reports the current public address whenever it changes. You connect to the name.
It has limits. There is a short gap after each change while old answers expire from caches. It does not help with services that want a specific number on an allow list. And it does nothing if your provider places you behind carrier-grade NAT, where the public address is shared and inbound connections never reach your router. Pair it with a VPN rather than exposing devices directly, as in self-hosting a VPN.
Privacy and security differences
A static public address is easier to associate with you across time, because it doesn't change. A changing one offers slight friction against that, though websites have many other ways to recognize returning visitors, and your provider knows who held which address. Neither type makes you safe. What matters is what you expose: any open service on any address will be found by automated scanning, so keep firewalls on and software updated.
Choosing the right kind for common devices
A few typical cases show how the choice plays out in practice.
| Device or job | Sensible approach |
|---|---|
| Laptop or phone | Plain dynamic addressing |
| Network printer | DHCP reservation |
| File server or network storage box | Reservation, or a manual address outside the pool |
| Security camera recorder | Reservation, with remote access through a VPN |
| The router's own local address | Fixed, set in the router |
| Smart plugs and bulbs | Dynamic; apps find them by discovery |
| A game console needing a port rule | Reservation so the rule keeps pointing at it |
Say your home office has a printer that "disappears" every few weeks. The computers were set up to print to its old address, and the printer later received a new one. A reservation fixes the cause: the printer keeps asking automatically, and the router keeps giving the same answer. Many systems can also find printers by name using local discovery, which sidesteps the number entirely, but that works less reliably across separate subnets or guest networks.
In an office, whoever manages the network should keep one written record of every fixed assignment: the address, the device, the purpose and who set it. Retired equipment should be removed from the list. Undocumented static addresses are a classic cause of conflicts years later, when someone widens the DHCP pool and runs straight over them.
IPv6 and stability
With IPv6, a provider typically delegates a whole block, called a prefix, to your connection. That prefix may be stable or may change, much like an IPv4 address. Devices also often create temporary addresses for outgoing connections that rotate on their own, alongside a more stable one used for incoming connections. If you host something over IPv6, make sure you publish the stable address and ask your provider whether the prefix is fixed. See SLAAC and DHCPv6.
Common questions
Will restarting my router give me a new public address?
Sometimes. Many providers hand back the same one, especially after a short outage. Leaving equipment off longer may or may not change it.
Is a static address faster?
No. Speed depends on your plan, the link and the path. A static address only changes how easy you are to find.