Static vs dynamic IP address: how to tell which you have, and when you need a static one

"Static" means two different things depending on whether you're talking about the public address your ISP gives you or the local address of a device on your network. This guide covers both, explains why dynamic addresses change when they do, and helps you decide whether a static public IP is worth paying for.

On this page The two kinds

You're setting up remote access to a home camera, a mail server, or an API key that only works from your office, and the instructions say "you'll need a static IP". Your ISP sells one as an add-on. Before you pay, it helps to know which address the instructions mean, and whether the one you have changes at all.

A static IP address is assigned once and stays the same until someone changes it on purpose. A dynamic address is handed out automatically for a limited time and can change when that time runs out or the connection restarts. Both terms apply in two places that people often mix up: the public address your ISP gives your connection, and the local addresses your router gives the devices at home. Public vs private IP addresses explains the difference between the two.

The two kinds

A dynamic public IP is what most home broadband and mobile connections get. Your router asks the ISP for an address when it connects, and the ISP assigns one from a pool. You usually get the same address back for a while, but there's no promise, and the ISP can change it when the lease ends, when the router reconnects, or when it reorganises its network.

A static public IP is reserved for your connection, either by contract or by the ISP's configuration. It's usual for servers in data centres and for business lines, and a paid extra on many home connections. The address only changes if the ISP changes it, for example at your request.

On your home network the same split exists. Your router normally hands out dynamic local addresses with DHCP, and you can make a device's local address fixed either on the router or on the device itself, for free and without involving your ISP.

How dynamic addresses are assigned

Most networks hand out IPv4 addresses with DHCP (RFC 2131). The server grants the address as a lease with an expiry time. The client tries to renew the lease long before it expires: by default at half the lease time (T1) with the server that granted it, and at 87,5% of the lease time (T2) with any server (RFC 2131 §4.4.5). If renewal keeps succeeding, the address can stay the same indefinitely. The protocol also tries to give a returning client "the same network address each time the client requests an address" (RFC 2131 §2.2).

Some ISPs, especially on DSL and some fibre lines, use PPPoE instead. The router logs in with a username and password and gets an address for that session. A new session can mean a new address.

With IPv6, the ISP usually delegates a whole prefix to the router with DHCPv6 prefix delegation (RFC 8415), and devices build their addresses from it. The delegated prefix can be static or dynamic too. Some ISPs keep it stable, and others change it when the router reconnects. On top of that, devices create temporary IPv6 addresses that rotate even when the prefix stays the same (RFC 8981). So an IPv6 address that changes every day doesn't mean your connection is dynamic. IPv4 vs IPv6 explains how those addresses are built.

Why your public IP changes (and why it may not change for months)

A dynamic address changes when the ISP doesn't renew it for you. That happens when:

  • the router is off long enough for the lease to expire, and the ISP gives the address to someone else;
  • the router starts a new PPPoE session after a reconnect or a line drop;
  • the ISP does maintenance, replaces equipment, or moves address blocks between regions;
  • you change the device that connects to the ISP, such as a new router with a different hardware address.

If none of that happens, renewal keeps working and the address stays. That's why many people on dynamic connections see the same IP for months, even though the ISP never promised to keep it.

How to tell whether your IP is static

  • Check your contract or your ISP account. A static IP is a named product, usually listed with the address itself. If you didn't order or pay for one on a home plan, assume it's dynamic.
  • Ask the ISP. Support can tell you whether your line has a fixed address.
  • Watch it over time. Note your public IPv4 address, then check again after a router restart and over a few weeks. What is my IPv4 shows it when your browser connects over IPv4; on a connection that also has IPv6, your router's status page lists it as the WAN or internet address, unless you're behind carrier-grade NAT (next point). If it changes, it's dynamic. If it stays the same, that doesn't tell you much, because dynamic addresses often stay put for months.
  • Check for carrier-grade NAT. If your router's WAN address is in 100.64.0.0/10, you share a public address with other customers (RFC 6598), so you can't have a static public IPv4 of your own on that line. What is CGNAT shows how to check.

What is my IP also shows the ISP and network your address belongs to, which helps when you're checking a business line.

Static or dynamic on your home network

For a printer, a NAS, a home server, or a device you forward ports to, you want the local address to stay the same. There are two ways:

A DHCP reservation, set on the router, tells it to always give one device the same address. It's usually under the router's LAN or DHCP settings, keyed on the device's MAC address. The device still uses DHCP, so nothing changes on the device. This is the better option for most homes, because the router knows about every address and won't hand the same one to something else.

A manual address is set on the device itself. On Windows 11, Microsoft's network settings guide gives the path: in Network & internet, open your Wi-Fi network's properties (Manage known networks) or your Ethernet connection, select Edit next to IP assignment, choose Manual, turn on IPv4 and fill in IP address, Subnet mask, Gateway and Preferred DNS (your router's address usually works for DNS).

On a Mac, Apple's guide Use DHCP or a manual IP address on Mac gives System Settings > Network > your service > Details > TCP/IP, then Configure IPv4 > Manually. Then add a DNS server in the DNS tab of the same Details window (Apple: Change DNS settings on Mac); again, the router's address usually works.

On an iPhone, the setting is Settings > Wi-Fi > the info button next to the network > Configure IP > Manual, and the DNS server goes under Configure DNS > Manual on the same screen; on Android, edit the saved Wi-Fi network and set IP settings to Static under the advanced options.

If you set a manual address, pick one outside the range the router's DHCP server hands out, or two devices can end up with the same address and both lose their connection. The router's DHCP settings show the range, for example 192.168.1.100 to 192.168.1.199.

When you need a static public IP

A static public address is worth paying for when something outside your network has to find or trust your address:

  • Running a mail server. Receiving servers expect a sending IP with matching forward and reverse DNS, and the Spamhaus PBL lists end-user ranges that shouldn't send mail directly. Spamhaus only removes an address from the PBL if it is static rather than dynamic, runs a mail server, has forward and reverse DNS, and is assigned to the person requesting removal (Spamhaus PBL). IP blacklist removal covers the rest.
  • Allowlists. Business systems, databases and APIs often allow access only from listed addresses. An IPAPI.GR API key, for example, can be restricted to allowed IP addresses, and that only works smoothly if your server's address doesn't change. Base allowlists on the connecting address, not a header like X-Forwarded-For that a client can set; X-Forwarded-For security explains why.
  • Hosting a site or service on your own line, where DNS has to point at a fixed address.
  • Running a VPN server or remote desktop that you connect to from outside.

You don't need one for browsing, streaming, video calls, or ordinary online gaming. Those all start connections from your side.

Alternatives: dynamic DNS, IPv6, tunnels

Dynamic DNS gives you a hostname that follows your changing address. A small client on your router or a computer notices when your public IP changes and updates the DNS record. DNS has a standard update protocol (RFC 2136), but most dynamic DNS services use their own simple HTTP APIs, and many routers have a built-in client for the popular ones. It works well for reaching a home camera or server by name. It doesn't help with allowlists that need a fixed number, or with mail.

IPv6 can avoid the problem when your ISP gives you a stable prefix. Every device gets its own public address, so there's nothing to forward, though you still have to allow the connection in the router's firewall and the device's address must be stable (not a temporary one).

If you're behind carrier-grade NAT, neither port forwarding nor dynamic DNS can make you reachable over IPv4. The usual options there are a tunnel or relay service that gives you a reachable endpoint, or a small virtual server with its own static address that forwards traffic to your home. How to change or hide your IP address covers the related question of getting a different address.

Privacy: does a static IP make you easier to track?

A little. With a static address, every site you visit sees the same IP for years, so it can link your visits over time by address alone. With a dynamic address that changes now and then, that link breaks at each change. In practice, sites track people mostly with logins, cookies and browser fingerprints, which work the same with either kind of address. And your ISP can always link either kind of address to your account, because it assigned it.

FAQ

How often does a dynamic IP change?

There's no fixed interval, and ISPs rarely publish one. Many home connections keep the same address for weeks or months; it usually changes after the router is off for a long time, a reconnect, or ISP maintenance. Why your public IP changes lists the causes.

Can I make my public IP static myself?

No. Your public address is assigned by the ISP, and only the ISP can reserve one for you. Typing an address into your router's WAN settings without the ISP's agreement will just break the connection. What you can make static yourself is the local address of a device on your own network.

Is a static IP safer?

Not in itself. A static address is easier for someone to find again, and devices reachable on it are a steadier target, so keep the router and any exposed service updated. A dynamic address isn't protection either: internet-wide scanners probe every public IPv4 address regularly, whatever kind it is (internet scanner IP list).

Does a static IP improve gaming?

Not for speed or latency, which depend on the route your traffic takes, not on whether your address changes. If you host game servers that friends connect to, a static IP (or dynamic DNS) means they don't need a new address each time, and that's the main benefit. If friends can't connect to your server at all, check for carrier-grade NAT before you pay for anything.

Next: check what your current public address is, and which network it belongs to, on What is my IP.

Look up an IP address now

Free IP lookup: location, network and bot flags, no account needed.