What Is a Static IP Address? Static vs Dynamic IP

See your own IP, check whether it changes, and decide if you need a static one.

Reading your IP address… See your IP on the home page →

A static IP address never changes; a dynamic IP address is lent by DHCP and can change when the lease ends or the router restarts. Most home connections use a dynamic public IP; a static IP usually costs extra from the ISP.

What Is a Static IP Address?

A static IP is an address that stays the same: set by hand on a device, or reserved for you by your ISP.

Diagram comparing a static IP, like a reserved parking spot, with a dynamic IP, like any free spot lent from a pool by DHCP
Static: always the same address. Dynamic: lent from a pool and may change.

Other systems use a static IP when they must always find you at the same address. A web server needs one so its DNS record stays valid; a mail server needs one so its reverse DNS name matches, which receiving mail servers check; a company VPN or a service with an IP allow-list needs one so its rules don't break.

There are two kinds, and people often mix them up:

  • Static public IP: the address the internet sees (shown in the box above), fixed by your ISP. Usually part of a business plan or a paid add-on.
  • Static local IP: a fixed private address such as 192.168.1.50 inside your home network, for a printer, a NAS or a console. Free: set it with a DHCP reservation on your router or by hand on the device.

What Is a Dynamic IP Address?

A dynamic IP is lent by a DHCP server for a set time (the lease) and may be replaced by another address later.

When your router connects, it asks the ISP's DHCP server for an address (RFC 2131) in four messages: Discover (anyone there?), Offer (you can have this address), Request (I'll take it) and Acknowledge (it's yours for the lease time). Your router does the same for the devices in your home. Dynamic addressing lets ISPs share a limited pool of IPv4 addresses among their customers without anyone configuring anything.

DHCP lease timeline: renew with the same server at 50 percent (T1), ask any server at 87.5 percent (T2), expire at 100 percent; with a 24-hour lease, 12 and 21 hours
A dynamic IP is borrowed: the device asks to renew at half the lease time.

The lease has two timers (RFC 2131, section 4.4). At half the lease (T1) the device asks the same server to renew; at 87.5% (T2) it asks any server; if the lease runs out, it must stop using the address and start again. Lease times are set by each ISP or router; home routers often use 24 hours for local devices.

Why your dynamic IP often stays the same for weeks

Many ISPs renew the same address to the same modem as long as it stays connected ("sticky" DHCP). So a dynamic IP can look static for months, then change after a long power cut, a new modem or ISP maintenance. It is still dynamic: the ISP doesn't promise to keep it.

Static vs Dynamic IP: Comparison

Static is predictable and usually costs extra; dynamic is free and automatic, and fine for almost all home use.

Static IPDynamic IP
Changes?No, until you or the ISP change itCan change at lease end, restart or ISP maintenance
Cost (public IP)Often business plans or a paid add-onIncluded in home plans
SetupOrdered from the ISP, or set by hand / reservation (local)Automatic (DHCP)
Hosting a website or mail serverYes: stable DNS and reverse DNSHobby use with dynamic DNS; not for mail
Remote access (cameras, NAS)Simple: always the same addressWorks with dynamic DNS or a remote-access app
IP allow-lists (work, banking)WorksBreaks when the IP changes
Speed and pingNo differenceNo difference
Privacy and exposureEasier to track and target over timeChanges now and then; slightly harder to track

Is My IP Static or Dynamic?

Your public IP is almost certainly dynamic unless you pay your ISP for a static one; the box at the top shows whether it has changed on this device.

  1. Check your plan. A static IP is something you order: it appears in your contract, on your bill or in your ISP account. No mention means dynamic.
  2. Watch it over time. The box above remembers your IP in this browser. Come back after a few days or after restarting your router: if it changed, it's dynamic. If it never changes, it may be sticky DHCP, not static.
  3. Read the hostname hint. ISPs often name dynamic addresses with words like pool, dynamic, dsl or dhcp, and static ones with static. It's a clue, not proof.
  4. Look at your router. On the router's internet (WAN) status page, the connection type DHCP, Dynamic IP or PPPoE usually means a dynamic address; Static IP with an address you typed in means static. Find the router page with our router IP guide.

Your device's local address

Check whether your device's local IP is static or dynamic

These commands show how your device got its local address (such as 192.168.1.23) from your router. They say nothing about your public IP.

Windows Command Prompt

ipconfig /all

Under your active adapter, DHCP Enabled . . . : Yes means dynamic; No means set by hand.

Windows PowerShell

Get-NetIPAddress -AddressFamily IPv4 | Select-Object InterfaceAlias, IPAddress, PrefixOrigin

Dhcp means dynamic; Manual means set by hand.

macOS Terminal

networksetup -getinfo Wi-Fi

The first line says DHCP Configuration (dynamic) or Manual Configuration (set by hand). Use Ethernet instead of Wi-Fi for a cable; networksetup -listallnetworkservices lists the names.

Linux NetworkManager

nmcli -f NAME,DEVICE connection show --active
nmcli -g ipv4.method connection show "Wired connection 1"

auto means DHCP; manual means set by hand. Use your connection name from the first command.

Do I Need a Static IP?

Only if others must reach you at a fixed address: a server, remote cameras, or a work allow-list. Otherwise dynamic DNS (free) usually works.

Answer four questions

No box ticked: you don't need a static IP. Browsing, streaming, gaming and video calls work the same on a dynamic IP.

Dynamic DNS: a free alternative

Dynamic DNS (DDNS) gives your connection a fixed name, such as myhome.example.net, and updates it whenever your IP changes. Many routers have it built in (look for "DDNS"), and services like No-IP, Duck DNS or a Cloudflare API script do the same. It's enough to reach cameras or a NAS, but not for a mail server, and it can't help if you're behind CGNAT.

How to Get a Static IP From Your ISP

Ask your provider for a static IP; many offer it only on business plans or for a monthly fee.

  1. Look up your provider. Your provider is shown in the box above (or on What Is My ISP). Search its site for "static IP": it's often under business plans or add-ons.
  2. Ask for the details. Price, whether it needs a business plan, whether you get IPv4, an IPv6 prefix or both, and whether they set the reverse DNS name (needed for a mail server).
  3. Set it up as told. Some ISPs assign it to your modem automatically; others give you the address, subnet mask and gateway to enter on your router's WAN page.
  4. Check it. Reload this page: the box above should show the new address, and it should never change.

Some providers don't sell one at all on home plans: Starlink says it doesn't provide static IP addresses, and Xfinity offers them only with business internet (details in the FAQ below).

Why a static IP or port forwarding may not work (CGNAT)

Many ISPs, especially mobile, fixed-wireless and fiber providers short of IPv4 addresses, put several customers behind one public IP (carrier-grade NAT, CGNAT). Then your router doesn't have a public IP at all, port forwarding from the internet can't reach you, and dynamic DNS points at an address shared with others. Only your ISP can fix it: by giving you a public or static IP, or by letting you use IPv6. Every way around it: What Is CGNAT?

Diagram of carrier-grade NAT: the home router gets a 100.64.0.0/10 address and the ISP translates it again to a public IP shared by many customers, breaking port forwarding
With CGNAT, the public IP belongs to the ISP's NAT, not to your router.

Find it on the router's status page, under Internet, WAN or Connection status.

How to Set a Static IP on Your Device

On a home network, prefer a DHCP reservation on the router; if you set it on the device, pick an address outside the router's DHCP range.

Setting it on the device changes only its local address; your public IP stays whatever your ISP gives you. Before you start, note your router's address (the gateway, often 192.168.1.1), its subnet (usually 255.255.255.0, or /24) and its DHCP range, then pick a free address outside that range, such as 192.168.1.200.

Windows 11

  1. Open Settings → Network & internet, then Wi-Fi (your network's properties) or Ethernet.
  2. Next to IP assignment, select Edit and choose Manual.
  3. Turn on IPv4 and fill in IP address, Subnet mask, Gateway and Preferred DNS.
  4. Select Save. To undo, set IP assignment back to Automatic (DHCP).

macOS

  1. Open System Settings → Network, select Wi-Fi or Ethernet, then Details… next to your network.
  2. Go to TCP/IP and set Configure IPv4 to Manually (or Using DHCP with manual address to keep the router's DNS and gateway).
  3. Enter IP Address, Subnet Mask and Router. Add DNS servers under DNS if needed.
  4. Select OK.

iPhone and iPad

  1. Open Settings → Wi-Fi and tap ⓘ next to your network.
  2. Tap Configure IP and choose Manual.
  3. Enter IP Address, Subnet Mask and Router, then tap Save.
  4. Back on the network page, set Configure DNS to Manual if you need your own DNS servers.

Android

  1. Open Settings → Network & internet → Internet (names vary by brand) and tap the gear next to your Wi-Fi network.
  2. Tap the edit (pencil) icon, then Advanced options.
  3. Set IP settings to Static and fill in IP address, Gateway, Network prefix length (24 for 255.255.255.0) and DNS 1.
  4. Tap Save.

Linux (NetworkManager)

nmcli connection modify "Wired connection 1" ipv4.method manual ipv4.addresses 192.168.1.200/24 ipv4.gateway 192.168.1.1 ipv4.dns "1.1.1.1 9.9.9.9"
nmcli connection up "Wired connection 1"

Replace the connection name and addresses with yours. To go back to DHCP: nmcli connection modify "Wired connection 1" ipv4.method auto ipv4.addresses "" ipv4.gateway "".

What Is a DHCP Reservation?

A DHCP reservation tells the router to always give the same local IP to one device (by its MAC address): a static local IP without touching the device.

It's the cleanest way to give a printer, NAS, camera or console a fixed address: the device keeps getting its settings automatically, and still works normally when you take it to another network.

  1. Open your router's admin page (how to find it) and sign in.
  2. Find the DHCP settings, usually under LAN, Network or DHCP Server.
  3. Pick the device from the list of connected clients, or enter its MAC address.
  4. Choose the address to reserve, save, then restart the device (or reconnect it) so it picks up the address.
RouterWhere to look (names vary by firmware)
TP-LinkAdvanced → Network → DHCP Server → Address Reservation
NetgearAdvanced → Setup → LAN Setup → Address Reservation
ASUSLAN → DHCP Server → Manually Assigned IP around the DHCP list
LinksysConnectivity → Local Network → DHCP Reservations
eero / Google Nest WifiIn the app: Reservations (eero) or IP reservations (Google Home)

Phones and laptops may use a private (random) Wi-Fi MAC address per network. Keep it fixed for your home network, or the router won't recognise the device.

Frequently Asked Questions

What is a static IP address?
A static IP address is an IP address that doesn't change. For your internet connection, it comes from your ISP, usually on a business plan or for an extra fee. On your home network, you get the same effect for free with a DHCP reservation on your router, or by setting the address by hand on the device.
Is my IP address static or dynamic?
Almost certainly dynamic, unless you asked and pay your ISP for a static IP. The box at the top of this page shows your current public IP and remembers it in your browser, so on later visits you can see whether it has changed. Your router's WAN page and your ISP contract give the final answer.
Is a static IP better for gaming?
Not for speed or ping: static and dynamic IPs are equally fast. A static IP only helps if you host a game server that friends join by IP. For port forwarding to your console or PC, a DHCP reservation on your router keeps the local address fixed for free.
Is a static IP more secure?
No. A fixed address is easier to find again and to target over time, and it makes your connection easier to track. Security comes from your router's firewall, closed ports and up-to-date devices, not from the type of IP address.
How much does a static IP cost?
It depends on the ISP and the country. Many providers offer a static IP only on business plans; others sell it as a monthly add-on to a home plan, and some don't offer it at all. Check your ISP's business or add-on pages, or ask them. If you only need to reach your home from outside, free dynamic DNS often does the job instead.
Does Starlink give you a static IP?
No. Starlink says it doesn't provide static IP addresses. By default it uses CGNAT: a shared address from 100.64.0.0/10 that blocks incoming connections. Priority (business) plans can choose a "public" IPv4 address instead: it's kept when the dish is off or restarts, but it can change if you move the dish or after a software update. Every Starlink also gets a public IPv6 prefix.
Can I get a static IP with Xfinity?
Not on a home plan. Xfinity says it doesn't offer static IP addresses on residential accounts: you need an Xfinity (Comcast) Business account. To reach your home from outside on a home plan, free dynamic DNS is the usual workaround.
What does DHCP mean?
Dynamic Host Configuration Protocol: the system that hands out IP addresses automatically. Your router uses it for the devices at home, and many internet providers use it, or a similar system such as PPPoE, to give your router its public IP.
What is IP whitelisting?
Letting only listed IP addresses reach something, such as a company server, an admin page or an API. It's a common reason to get a static IP: when a dynamic IP changes, the new one isn't on the list and access stops.
Why does my IP address keep changing?
Your ISP gives out dynamic IP addresses. Your address can change when its DHCP lease ends, when your router or modem restarts or is offline for a while, when you switch between Wi-Fi and mobile data, or when the ISP reorganises its network. A VPN also changes the IP websites see.

Next steps

Related Tools

What Is My IP
See your public IPv4 and IPv6 address, provider and location.
What Is My ISP
See which provider gives you your IP address.
Port Checker
Check whether a port on your public IP is open after setting up port forwarding.
IP Blacklist Checker
Check a static IP before running a mail server on it.

Related Guides

Guide Public IP vs Private IP
the address the internet sees versus your local network address
Guide How to find your router's IP
open your router's admin page on any device
Guide How to change your IP address
get a new public or local IP