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.
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.
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 IP | Dynamic IP | |
|---|---|---|
| Changes? | No, until you or the ISP change it | Can change at lease end, restart or ISP maintenance |
| Cost (public IP) | Often business plans or a paid add-on | Included in home plans |
| Setup | Ordered from the ISP, or set by hand / reservation (local) | Automatic (DHCP) |
| Hosting a website or mail server | Yes: stable DNS and reverse DNS | Hobby use with dynamic DNS; not for mail |
| Remote access (cameras, NAS) | Simple: always the same address | Works with dynamic DNS or a remote-access app |
| IP allow-lists (work, banking) | Works | Breaks when the IP changes |
| Speed and ping | No difference | No difference |
| Privacy and exposure | Easier to track and target over time | Changes 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.
- 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.
- 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.
- Read the hostname hint. ISPs often name dynamic addresses with words like
pool,dynamic,dslordhcp, and static ones withstatic. It's a clue, not proof. - 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.
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.
- 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.
- 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).
- 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.
- 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?
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
- Open Settings → Network & internet, then Wi-Fi (your network's properties) or Ethernet.
- Next to IP assignment, select Edit and choose Manual.
- Turn on IPv4 and fill in IP address, Subnet mask, Gateway and Preferred DNS.
- Select Save. To undo, set IP assignment back to Automatic (DHCP).
macOS
- Open System Settings → Network, select Wi-Fi or Ethernet, then Details… next to your network.
- Go to TCP/IP and set Configure IPv4 to Manually (or Using DHCP with manual address to keep the router's DNS and gateway).
- Enter IP Address, Subnet Mask and Router. Add DNS servers under DNS if needed.
- Select OK.
iPhone and iPad
- Open Settings → Wi-Fi and tap ⓘ next to your network.
- Tap Configure IP and choose Manual.
- Enter IP Address, Subnet Mask and Router, then tap Save.
- Back on the network page, set Configure DNS to Manual if you need your own DNS servers.
Android
- Open Settings → Network & internet → Internet (names vary by brand) and tap the gear next to your Wi-Fi network.
- Tap the edit (pencil) icon, then Advanced options.
- Set IP settings to Static and fill in IP address, Gateway, Network prefix length (24 for 255.255.255.0) and DNS 1.
- 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.
- Open your router's admin page (how to find it) and sign in.
- Find the DHCP settings, usually under LAN, Network or DHCP Server.
- Pick the device from the list of connected clients, or enter its MAC address.
- Choose the address to reserve, save, then restart the device (or reconnect it) so it picks up the address.
| Router | Where to look (names vary by firmware) |
|---|---|
| TP-Link | Advanced → Network → DHCP Server → Address Reservation |
| Netgear | Advanced → Setup → LAN Setup → Address Reservation |
| ASUS | LAN → DHCP Server → Manually Assigned IP around the DHCP list |
| Linksys | Connectivity → Local Network → DHCP Reservations |
| eero / Google Nest Wifi | In 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?
Is my IP address static or dynamic?
Is a static IP better for gaming?
Is a static IP more secure?
How much does a static IP cost?
Does Starlink give you a static IP?
Can I get a static IP with Xfinity?
What does DHCP mean?
What is IP whitelisting?
Why does my IP address keep changing?
Next steps