Your IPv4 address:
Operating system:

Static vs dynamic IP addresses: which do you need?

Before you pay your provider extra for a static IP, check what the term covers. A static address is deliberately kept fixed for an interface or a service. A dynamic address is assigned automatically and may change, although it need not change every time a device reconnects. Both words describe how an address is assigned, not whether it is public or private: either kind can be handed out either way.

How your devices get addresses, and why “dynamic” often stays the same

A home router commonly gives out private IPv4 addresses using DHCP. The server offers an address for a lease period, and the device normally tries to renew the lease before it expires. As long as renewal succeeds, the device keeps its address, so the same “dynamic” address can remain in use for months. RFC 2131 describes this DHCPv4 behaviour.

A router may also reserve an address for a specific device. The device still receives it automatically, but the value is stable. IPv6 may use router advertisements, DHCPv6 or both, so do not project the IPv4 process onto it without checking the actual setup.

When a fixed address is worth having

A stable address is useful for a server, a VPN gateway or any device that other systems contact by a known IP. On a local network, a DHCP reservation is often easier to manage than configuring the device by hand, because the settings stay in one place.

A static public IPv4 address may be a separate service from your provider. Check the contract, and check whether incoming connections are permitted at all. Fixing an address does not automatically open a port: routing and firewall rules still matter. The reverse also holds. A changing public address can serve a home application through a DNS name that is updated when the address changes, if the provider permits inbound traffic.

Finding out whether your public address changes

Record your public address together with the time, and compare after ordinary reconnections or over several days. The 2ip IP WHOIS lookup shows which provider and network each recorded address belongs to. One router restart proves little, because the provider may offer the same lease again.

Compare the address on the router’s external interface with the address the website sees. With a VPN or carrier-grade NAT, the observed address may belong to an intermediary and not to your router. Observation only shows what happened so far; only the provider’s service terms can confirm that an address is contractually fixed.

Mistakes people make with manual addresses

Do not pick an address from the router’s DHCP pool by hand without coordination. The server may assign the same address to another device and create a conflict. Replacing a router can change the subnet, the gateway and the DNS servers, and an old manual address may then cut the device off.

For a long-lived service, a DNS name is often easier to maintain than a memorised numeric address, since the name can follow the service when the number changes.

A static IP is not a security or privacy feature

A static address does not increase privacy or guarantee security. An exposed service needs updates, authentication and access controls regardless of how its address was assigned.