You don't have javascript enabled. Please enable javascript to use this website.

Static IP vs Dynamic IP Address

A static IP address is a network identifier permanently assigned to a device that remains constant across all sessions — configured manually by an ISP or network administrator, it never changes unless deliberately reconfigured. A dynamic IP address is automatically assigned from an available address pool by a DHCP server (RFC 2131) and returned to the pool when the lease expires. Static IPs suit servers, VPNs, and hosted services requiring a fixed endpoint. Dynamic IPs are the residential and small-business default — lower cost, automatically managed, and transparent to most users.

What Is a Static IP Address?

A static IP never changes: it is set by hand on the device, or reserved for you by your ISP.

A static IP address is an internet or network address permanently fixed to a specific device or service. Unlike addresses issued through DHCP, a static IP is either manually entered into a device's network adapter configuration or reserved by the ISP so that the same address is always returned to that customer.

From an infrastructure standpoint, static IPs are essential when external systems need to reach a service at a predictable, unchanging address. A web server must have a static IP so its DNS A record remains valid indefinitely. A mail server requires one because receiving mail servers verify the PTR (reverse DNS) record of the sending IP — a changing address breaks this verification and causes delivery failures. A corporate VPN endpoint must have a static IP so that firewall access-control rules, which whitelist specific addresses, do not break each time the IP rotates.

Two distinct types exist:

  • Static public IP — Assigned at the WAN level by the ISP, visible to the internet. Requires a service upgrade or additional monthly fee.
  • Static private IP (DHCP reservation) — Configured within a local network by binding a specific local address to a device's MAC address in the router's DHCP reservation table. Free — no ISP involvement required.

Cost of a Static IP Address

Static public IPs are not included in standard residential internet plans. ISPs typically charge an additional $5–$30 per month for a dedicated static IP on residential connections; business-grade plans with multiple static IPs cost more. Some ISPs require upgrading to a business account entirely before a static IP becomes available.


What Is a Dynamic IP Address?

A dynamic IP is lent to your device by a DHCP server and can change over time. Most home connections use one.

A dynamic IP address is one automatically issued by a DHCP server (Dynamic Host Configuration Protocol, RFC 2131) each time a device requests network access. The address is drawn from a pool of available addresses maintained by the server — at the ISP level for public WAN IPs, or at the router level for private LAN addresses.

Dynamic addressing exists primarily to conserve the finite IPv4 address space. With approximately 4.3 billion total IPv4 addresses and far more connected devices worldwide, ISPs cannot permanently dedicate one address per customer. Dynamic allocation reclaims addresses from offline or idle devices and reassigns them to active connections, maximizing pool utilization.

The DHCP DORA Handshake

When a device requests a dynamic IP, DHCP uses a four-message exchange known as DORA:

  1. Discover — The device broadcasts a DHCPDISCOVER packet on the local network segment, looking for available DHCP servers.
  2. Offer — A DHCP server responds with a DHCPOFFER, proposing an available IP address along with lease duration, subnet mask, default gateway, and DNS server addresses.
  3. Request — The device accepts by sending a DHCPREQUEST, confirming which server's offer it is accepting (relevant when multiple DHCP servers respond).
  4. Acknowledge — The DHCP server sends a DHCPACK, confirming the lease. The device applies the configuration immediately and begins using the assigned address.

How DHCP Assigns Dynamic IPs — The Lease Lifecycle

A dynamic IP comes with a lease. The device tries to renew it at 50% of the lease time (T1), asks any DHCP server at 87.5% (T2), and must stop using it when the lease expires.

DHCP lease timeline A DHCP lease starts at 0 percent. At 50 percent of the lease time (T1) the device asks the same DHCP server to renew. At 87.5 percent (T2) it asks any DHCP server. At 100 percent the lease expires and the address must no longer be used. 0%50% · T187.5% · T2100% Lease starts Renew with thesame DHCP server Ask anyDHCP server Expired: stop using the IP
A dynamic IP is a lease: renewed at 50% of its time (T1), offered to any DHCP server at 87.5% (T2), and released when it expires (RFC 2131).

Every dynamic IP assignment includes a lease time — the duration for which the address is reserved for that specific device. RFC 2131 Section 4.4 defines two renewal thresholds that govern what happens before and after that timer runs out:

  • T1 (50% of lease time) — The device sends a unicast DHCPREQUEST directly to the issuing DHCP server to renew the same IP before it expires. This is the normal renewal path.
  • T2 (87.5% of lease time) — If the T1 unicast renewal receives no response (server unreachable), the device broadcasts a renewal request to any available DHCP server on the network.
  • Lease expiry (100%) — If neither T1 nor T2 renewal succeeds, the device releases the IP address and restarts the full DORA handshake to obtain a new address.

Typical lease durations vary significantly by network type:

  • Residential ISP (cable / fiber): 24 hours to 8 days
  • Home router local DHCP: 24 hours (firmware default on most consumer routers)
  • Enterprise LAN: 4–8 hours (shorter leases improve address pool turnover)
  • Mobile carrier networks: 1 hour or less (very high churn rate)

Sticky DHCP — Why Your IP Often Stays the Same

Most home users observe that their dynamic IP rarely changes despite technically holding a time-limited lease. ISPs implement sticky DHCP by binding a lease to the customer's modem MAC address or DHCP Unique Identifier (DUID). The DHCP server consistently renews the same address to the same device as long as the lease is renewed on schedule. The address is not permanently reserved — a prolonged disconnection, ISP maintenance event, or modem replacement can break the binding and result in a new IP assignment. Sticky DHCP is not the same as a paid static IP; the ISP makes no contractual guarantee of address persistence.

Dynamic DNS (DDNS) as a Hosting Workaround

Hosting a server from a residential connection with a dynamic IP requires a Dynamic DNS service — providers such as No-IP, Duck DNS, and Cloudflare offer this. DDNS automatically updates a hostname's DNS A record whenever the underlying IP changes, maintaining a consistent domain name for incoming connections. This approach adds operational complexity and introduces a propagation delay between IP change and DNS update, which is why static IPs remain strongly preferred for any production-grade hosted service.


Static IP vs Dynamic IP — Full Comparison

Feature Static IP Dynamic IP
Assignment method Manually configured by ISP or network admin Automatically leased by DHCP server (RFC 2131)
Persistence Permanent — survives reboots, never changes Expires at lease end; may change on reconnect
Typical duration Indefinite (until manually changed) 1 hour–8 days depending on ISP and network type
DNS record stability Consistent — A and PTR records remain valid Requires DDNS service if hosting on dynamic IP
Additional monthly cost Extra fee: $5–$30 typical (residential ISP) Included in standard plan — no extra charge
Primary use case Web servers, mail servers, VPN endpoints Home networks, mobile devices, general browsing
Security exposure Fixed target — persistent attack surface Periodic rotation — minor tracking difficulty

When to Use a Static IP Address

Use a static IP when other systems must always find you at the same address: web and mail servers, VPN endpoints and IP allowlists.

A static IP is necessary or strongly recommended in the following four scenarios:

Web and mail servers. Any device hosting a website, API, or mail service must have a static IP so that DNS records remain valid. A rotating IP breaks DNS resolution — visitors cannot reach the service until the old TTL expires and propagation completes to the new address, which can take hours.

Reverse DNS and email deliverability. Mail servers require a valid PTR record — a reverse DNS entry mapping the sending IP to the mail server's hostname. Providers including Google, Microsoft, and most enterprise mail gateways reject or quarantine mail from servers without a matching PTR record. PTR records can only be reliably set against a static IP; they break immediately if the address changes.

VPN endpoints and firewall whitelists. Corporate VPN configurations and firewall access-control rules are typically locked to specific IP addresses. A rotating dynamic IP forces administrators to update rules each time a remote worker's IP changes — creating management overhead and creating temporary access gaps.

IP address whitelisting. Some banking, financial, and enterprise systems restrict access to specific whitelisted IPs. Users on dynamic IPs who are whitelisted may lose access silently when their address rotates, requiring re-authentication with IT each time.

When a dynamic IP is sufficient. For home internet use — streaming, gaming, browsing, video calls, and consuming cloud-hosted applications where the cloud provider owns the static endpoint — a dynamic IP delivers full functionality at no additional cost. The vast majority of residential users have no practical need for a static IP.

Do it yourself

How to Check If Your IP Is Static or Dynamic

On Windows, run ipconfig /all: “DHCP Enabled: Yes” means your device’s address is dynamic, “No” means it is static.

The most direct method is to inspect your network adapter settings using built-in command-line tools. These commands report whether the local interface was assigned its address via DHCP or configured manually as a static assignment.

Windows Command Prompt

ipconfig /all

Look for the line DHCP Enabled . . . . . . . . . . : Yes under your active adapter (Ethernet or Wi-Fi). Yes confirms a dynamic DHCP lease. No means the adapter is statically configured.

Windows PowerShell

Get-NetIPAddress | Where-Object {$_.AddressFamily -eq "IPv4"} | Select-Object IPAddress, PrefixOrigin

A PrefixOrigin value of Dhcp indicates a dynamic lease. Manual indicates a static assignment configured on the adapter directly.

macOS Terminal

networksetup -getinfo Wi-Fi

A line reading IP address configured manually: No indicates DHCP. Yes indicates a manually configured static address. For more detail, including DHCP lease information:

ipconfig getpacket en0

A response containing op = BOOTREPLY confirms a DHCP-assigned address. Replace en0 with the correct interface name if using a different adapter.

Linux NetworkManager

nmcli connection show <connection-name> | grep ipv4.method

Output of auto indicates DHCP; manual indicates a static assignment. Replace <connection-name> with the name shown in nmcli connection show. For systems using /etc/network/interfaces:

cat /etc/network/interfaces

A line containing iface eth0 inet dhcp indicates dynamic assignment. iface eth0 inet static indicates a manually configured address.

These commands inspect the local adapter configuration — whether the network interface uses DHCP or static assignment. For the public IP at the ISP level, contact your ISP directly or check your account dashboard, as local adapter settings do not always reflect the WAN assignment type.


How to Check Whether Your IP Is Static or Dynamic

Determine whether your public IP address is permanently assigned or dynamically leased using IP tools and router settings.

1

Check your current public IP address

Open the IP Geolocation Lookup tool and note your current public IP address exactly.
2

Power-cycle your router or modem

Disconnect your router or modem from power, wait 60 seconds, then reconnect and allow the internet connection to fully re-establish.
3

Check your IP address again

Return to IP Geolocation Lookup — if the address is identical to step 1, your ISP likely uses sticky or static assignment.
4

Verify in your router's WAN settings

Log in to your router admin panel (typically at 192.168.1.1) and check WAN connection type — DHCP means dynamic; a fixed IP listed means static.
5

Confirm with your ISP

Contact your ISP or check your account portal — a static IP appears as an add-on or business feature with an additional monthly fee.

Frequently Asked Questions

What is the difference between a static and a dynamic IP address?
A static IP address is permanently assigned to a device and never changes unless an ISP or administrator deliberately reconfigures it. A dynamic IP address is automatically leased from an available address pool by a DHCP server (RFC 2131) and may change when the lease expires or the device reconnects. Static assignment requires manual configuration; dynamic assignment is fully automated.
How reliable is a static IP address?
A static IP is fully reliable as a fixed network endpoint — it survives reboots and reconnections without changing. This makes it essential for DNS A records, reverse DNS PTR records, VPN access rules, and firewall whitelists that depend on a consistent address. The reliability risk runs the other direction: a static IP is a permanent target, making it easier to attack persistently or track over time.
What is the difference between DHCP assignment and static IP assignment?
Static IP assignment means the address is either manually entered into a device's network configuration or permanently reserved by the ISP. DHCP assignment (Dynamic Host Configuration Protocol, RFC 2131) means a server automatically issues an address from an available pool via the DORA handshake — Discover, Offer, Request, Acknowledge — for a fixed lease duration, commonly 24 hours to 8 days on residential connections.
Why does my IP address keep changing?
Dynamic IP addresses change because ISPs assign them via DHCP with a finite lease period. When the lease expires or the router reconnects, the DHCP server may issue a different address from the available pool. Many ISPs implement sticky DHCP — consistently reassigning the same address to the same modem — which is why home users often appear to have a stable IP despite technically holding a dynamic lease.
How do I get a static IP address?
For a static public IP, contact your ISP — most charge an additional monthly fee (typically $5–$30 for residential plans; more for business accounts) and may require a plan upgrade. For a static private IP within a local network, configure a DHCP address reservation in the router admin panel, binding a specific local address to a device's MAC address permanently at no additional cost.
Is a static IP address better for gaming?
A static IP offers one practical advantage for gaming: it enables persistent port forwarding rules and a consistent NAT type, which reduces connection issues on games requiring open NAT. For most players, a dynamic IP performs identically. The risk with a residential static IP is exposure to targeted DDoS attacks — unlike a dynamic IP, a static address cannot be changed by rebooting the router.
Does WhatIsMyIPNow store or log the IPs I look up?
WhatIsMyIPNow does not store or log any IP addresses entered into its tools. Each lookup is processed in real time and the result is returned immediately — no personal data, search history, or IP query records are retained after the request completes.
What is a sticky dynamic IP address?
A sticky dynamic IP is a dynamic address that a DHCP server consistently reassigns to the same device across multiple lease renewals, typically by binding the lease to the modem's MAC address or DUID. The address is technically dynamic and can change if the ISP pool is exhausted or the device connects from a different point. In practice it rarely changes, but it is not the same as a paid static IP — the ISP makes no permanent guarantee.

Put this guide into practice

Related Tools

IP Geolocation Lookup
Check the current public IP address assigned to your connection along with ISP, country, and network details.
Is This a Public or Private IP?
Instantly verify whether any IP address is internet-routable (public) or confined to a local network (private per RFC 1918).
IP WHOIS Lookup
Find the registered owner, ISP, and network block assigned to any IPv4 or IPv6 address via RDAP (RFC 7480).
IP Blacklist Checker
Check whether a static IP address appears on any of 80+ DNS blacklists — essential for mail servers and any hosted service using a fixed public IP.

Related Guides

Guide IP address fundamentals
how devices are identified and routed on the internet
Guide Public IP vs Private IP
internet-routable addresses versus RFC 1918 local network addresses
Guide How to change your IP address
release, renew, and static assignment methods per OS