How to tell whether an IP address is static or dynamic
The honest answer to "do I have a static or dynamic IP?" is that the address cannot tell you. A static address is one that someone set on purpose, on a device, in a router or in a provider's system. A dynamic address is one that a server leases for a limited period and may later replace or hand out again. Both are ordinary dotted numbers, and an IP lookup returns facts about the network that announces it, such as its operator, its reverse DNS name and its connection type, not the way it was assigned.
DHCP is not a synonym for dynamic. RFC 2131 describes three ways a DHCP server can allocate an address. Automatic allocation assigns a permanent address, dynamic allocation assigns one for a limited period or until the client gives it up, and manual allocation lets the network administrator choose the address and uses DHCP only to deliver it. A device that gets its address from DHCP can therefore hold an address that never changes, and the fact that a lease exists does not settle which kind it is.
The next section shows what the lookup returned for 11 addresses. After that come the checks that can answer the question, each with the thing it cannot tell you, then the outside hints and their limits, and last why the answer matters for allowlists and hosting. If you first need to find your own public address, start with What is my IP address?, and for who the provider is, What is an ISP?
What the lookup returned for 11 public addresses
We looked up two kinds of address. Six are addresses that Google, Cloudflare, Quad9 and the root server operators publish for their services: 8.8.8.8 and 8.8.4.4 on Google's Public DNS page, 1.1.1.1 on Cloudflare's resolver page, 9.9.9.9 on Quad9's service-addresses page, and 198.41.0.4 and 199.7.83.42 as the A and L root servers on IANA's root server list. The other five come from the EC2 prefixes in the ip-ranges.json file that Amazon publishes (syncToken 1796173625, createDate 2026-12-02-01-07-05): 54.156.10.20, 107.20.30.40 and 3.224.50.60 are arbitrary hosts inside three prefixes tagged us-east-1 EC2 with the network border group us-east-1, and 3.2.0.10 and 3.2.0.20 sit in a prefix tagged us-east-1 EC2 with the border group us-east-1-iah-1. The pages we read describe the first six as addresses to use and do not say how they are assigned, and nothing we read says how any of the five EC2 addresses is assigned, so this article calls none of the eleven static or dynamic.
$ for ip in 8.8.8.8 8.8.4.4 1.1.1.1 9.9.9.9 198.41.0.4 199.7.83.42 3.2.0.10 3.2.0.20 54.156.10.20 107.20.30.40 3.224.50.60; do echo "$ip -> $(dig +short -x $ip @1.1.1.1)"; done
8.8.8.8 -> dns.google.
8.8.4.4 -> dns.google.
1.1.1.1 -> one.one.one.one.
9.9.9.9 -> dns9.quad9.net.
198.41.0.4 -> a.root-servers.net.
199.7.83.42 -> l.root-servers.net.
3.2.0.10 ->
3.2.0.20 ->
54.156.10.20 -> ec2-54-156-10-20.compute-1.amazonaws.com.
107.20.30.40 -> ec2-107-20-30-40.compute-1.amazonaws.com.
3.224.50.60 -> ec2-3-224-50-60.compute-1.amazonaws.com.$ for ip in 8.8.8.8 8.8.4.4 1.1.1.1 9.9.9.9 198.41.0.4 199.7.83.42 3.2.0.10 3.2.0.20 54.156.10.20 107.20.30.40 3.224.50.60; do curl -s https://ipcheckhq.com/api/v1/ip/$ip | jq -c '{ip, reverse_dns, asn: .network.asn, type: .network.connection_type, certainty: .confidence.connection_type.certainty, confidence: .confidence.connection_type.confidence}'; sleep 1; done
{"ip":"8.8.8.8","reverse_dns":"dns.google","asn":15169,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"8.8.4.4","reverse_dns":"dns.google","asn":15169,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"1.1.1.1","reverse_dns":"one.one.one.one","asn":13335,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"9.9.9.9","reverse_dns":"dns9.quad9.net","asn":19281,"type":"unknown","certainty":"inferred","confidence":null}
{"ip":"198.41.0.4","reverse_dns":"a.root-servers.net","asn":211369,"type":"unknown","certainty":"inferred","confidence":null}
{"ip":"199.7.83.42","reverse_dns":"l.root-servers.net","asn":20144,"type":"unknown","certainty":"inferred","confidence":null}
{"ip":"3.2.0.10","reverse_dns":null,"asn":16509,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"3.2.0.20","reverse_dns":null,"asn":16509,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"54.156.10.20","reverse_dns":"ec2-54-156-10-20.compute-1.amazonaws.com","asn":14618,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"107.20.30.40","reverse_dns":"ec2-107-20-30-40.compute-1.amazonaws.com","asn":14618,"type":"hosting","certainty":"likely","confidence":0.9}
{"ip":"3.224.50.60","reverse_dns":"ec2-3-224-50-60.compute-1.amazonaws.com","asn":14618,"type":"hosting","certainty":"likely","confidence":0.9}| Address | Where the address comes from | Reverse DNS | ASN | Connection type |
|---|---|---|---|---|
| 8.8.8.8 | Google Public DNS page | dns.google | 15169 | hosting, likely, 0.9 |
| 8.8.4.4 | Google Public DNS page | dns.google | 15169 | hosting, likely, 0.9 |
| 1.1.1.1 | Cloudflare 1.1.1.1 page | one.one.one.one | 13335 | hosting, likely, 0.9 |
| 9.9.9.9 | Quad9 service-addresses page | dns9.quad9.net | 19281 | unknown, inferred, no confidence value |
| 198.41.0.4 | IANA root server list, a.root-servers.net | a.root-servers.net | 211369 | unknown, inferred, no confidence value |
| 199.7.83.42 | IANA root server list, l.root-servers.net | l.root-servers.net | 20144 | unknown, inferred, no confidence value |
| 3.2.0.10 | ip-ranges.json: EC2, us-east-1, border group us-east-1-iah-1 | none | 16509 | hosting, likely, 0.9 |
| 3.2.0.20 | ip-ranges.json: EC2, us-east-1, border group us-east-1-iah-1 | none | 16509 | hosting, likely, 0.9 |
| 54.156.10.20 | ip-ranges.json: EC2, us-east-1, border group us-east-1 | ec2-54-156-10-20.compute-1.amazonaws.com | 14618 | hosting, likely, 0.9 |
| 107.20.30.40 | ip-ranges.json: EC2, us-east-1, border group us-east-1 | ec2-107-20-30-40.compute-1.amazonaws.com | 14618 | hosting, likely, 0.9 |
| 3.224.50.60 | ip-ranges.json: EC2, us-east-1, border group us-east-1 | ec2-3-224-50-60.compute-1.amazonaws.com | 14618 | hosting, likely, 0.9 |
First, the response has no field for how an address is assigned. The code block below fetched all 11 responses and searched each one for the words static and dynamic; none of them contains either. The response does report a reverse DNS name, the network operator, the ASN and a connection type, which is what the lookup is built to show.
$ for ip in 8.8.8.8 8.8.4.4 1.1.1.1 9.9.9.9 198.41.0.4 199.7.83.42 3.2.0.10 3.2.0.20 54.156.10.20 107.20.30.40 3.224.50.60; do curl -s https://ipcheckhq.com/api/v1/ip/$ip | grep -ciE 'static|dynamic'; sleep 1; done | sort | uniq -c
11 0Second, the connection type splits the published service addresses without saying anything about assignment. Google's and Cloudflare's addresses came back as hosting with likely certainty, while Quad9's address and the two root server addresses came back as unknown with inferred certainty and no confidence value. We read unknown as the lookup having no classification for the connection type. It does not mean dynamic, and it does not mean static.
Third, the five EC2 addresses all came back as hosting, likely, 0.9, the same label as Google's 8.8.8.8, and AWS's documentation describes two kinds of EC2 public IPv4 address, an auto-assigned one and an Elastic IP, and both can come from Amazon's pool. AWS documents that an auto-assigned public IPv4 address comes from Amazon's pool of public IPv4 addresses and is released when the instance is stopped, hibernated or terminated. It documents that an Elastic IP address is static, stays yours until you release it, and also comes from Amazon's pool of IPv4 addresses or a pool the customer brought. The prefix entries we printed carry four fields, ip_prefix, region, service and network_border_group, and none of them marks an address as one kind or the other. So the response cannot tell an address that will vanish when an instance stops from one that persists, and neither can we from these results.
Fourth, the names are conventions, not flags. The three EC2 addresses with border group us-east-1 have reverse DNS names that embed the address after an ec2- prefix, with dots replaced by hyphens. AWS documents that style for its public IPv4 hostnames, and it also documents that an instance's public DNS hostname changes to match an Elastic IP address once one is associated with an instance that already had a public IPv4 address. That suggests the style does not by itself separate the two kinds, although we did not look up the reverse record of a known Elastic IP address to confirm it. The 3.2.0.x pair has no reverse record at all, and the file and the lookup describe it differently from the other three (border group us-east-1-iah-1 and ASN 16509, against us-east-1 and ASN 14618). We did not read an AWS page that explains that border group, so we do not interpret it.
Three checks you control: router, provider terms and repetition
Check 1 is your own router or gateway. Open its internet or WAN status page and look at how the connection gets its address: obtained automatically from the provider, or entered by hand. Interfaces differ, so the labels will too. The limit is that an address obtained automatically tells you the provider leases it, not whether the provider will give you the same one next time.
Be careful which lease you are reading. Devices on your home or office network get their addresses from the router, and that lease is for the local network, not for the public address the provider gives the router. The excerpt below is from a Mac on one local network on 2 December 2026, with the addresses replaced by documentation addresses and the other lines, including the hardware address, left out.
$ ipconfig getpacket en0
yiaddr = 192.0.2.29
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip): 192.0.2.1
lease_time (uint32): 0x15180
subnet_mask (ip): 255.255.255.0
router (ip_mult): {192.0.2.1}
$ printf '%d\n' 0x15180
86400The lease time of 0x15180 is 86,400 seconds, one day. That number says how long the server granted the address, not whether the server will give the same address again. RFC 2131 tells a server choosing an address for a returning client to prefer the client's current address, then its previous address if that is still free in the pool, before it picks a new one. A server that follows this can renew the same address for a long time, so a lease with an expiry does not mean the address changes.
Check 2 is your provider's published terms. One provider's help page, which carries no date and which we read on 2 December 2026, lists a static IP at $20 a month per address on any plan, says residential plans below its 10 Gig plan use dynamic addressing by default, and says most of its business connections use a dynamic address that can change. That is one operator's wording and prices, and other providers differ, so read your own plan page or contract. The limit is that terms describe what a provider sells, so confirm against your router, and note that a business plan did not imply a fixed address on that page.
Check 3 is repeating the same check over time. Record the public address your connection presents, using the same method every time, across a router restart and across more than one lease period, then compare. A different address proves the address was not fixed for that period. An unchanged address proves much less, because the server behaviour above can return the same dynamic address again and again. A VPN or proxy also changes what a check sees without any change to your assignment, so keep the route the same. How to read the address a check returns is covered in What is my IP address?
On IPv6 there are more layers, so a changing address is weaker evidence still. RFC 8415 separates identity associations for non-temporary addresses (IA_NA), temporary addresses (IA_TA) and delegated prefixes (IA_PD), and each lease carries a preferred and a valid lifetime, where a valid lifetime of infinity amounts to a permanent assignment. Independently of the provider, RFC 8981 asks hosts to generate new temporary addresses over time, with defaults of one day preferred and two days valid. A host whose IPv6 address changes may be doing exactly that, so it is not evidence of a dynamic assignment. The IPv4 vs IPv6 article covers the basics of the two address families.
Check 4 is outside hints: reverse DNS names and registry data
Check 4 uses what anyone can see from outside, and it is circumstantial. Reverse DNS names are chosen by whoever controls the reverse zone, and some carry the address or a word such as static or pool. Hetzner's reverse DNS page shows its default pattern, which is the word static, then the address with its octets reversed, then .clients.your-server.de. For the documentation address 203.0.113.1, that pattern gives static.1.113.0.203.clients.your-server.de. The page presents that as the default name, not as a statement about how an address is assigned, and it advises against automatically generated names such as this one, because spam filters might flag them. So the word static there comes from a template.
To make the limits concrete, here is a small script that flags those hints in a PTR name: the address written forwards or in reverse, or the words static, dyn, dynamic, dhcp or pool. We ran it only on documentation addresses. The Hetzner row uses the pattern from Hetzner's page and the other hostnames are constructed by us, so none of them is a real host.
import re
WORDS = {"static", "dyn", "dynamic", "dhcp", "pool"}
def hints(ip, ptr):
"""Return naming hints found in a PTR name. These are hints about the name, not about the assignment."""
if not ptr:
return ["no PTR record"]
octets = ip.split(".")
name = ptr.rstrip(".").lower()
found = []
for label, seq in (("address in name", octets), ("reversed address in name", octets[::-1])):
pattern = r"(?<!\d)" + r"[-.]".join(seq) + r"(?!\d)"
if re.search(pattern, name):
found.append(label)
for word in sorted(WORDS & set(re.split(r"[^a-z0-9]+", name))):
found.append(f"word '{word}'")
return found or ["no hints"]
CASES = [
("203.0.113.1", "static.1.113.0.203.clients.your-server.de"), # pattern shown on Hetzner's page
("203.0.113.25", "ec2-203-0-113-25.compute-1.amazonaws.com"), # constructed, AWS style
("198.51.100.7", "pool-198-51-100-7.dyn.isp.example"), # constructed
("203.0.113.80", "static.assets.example.com"), # constructed
("198.51.100.9", "mail.example.com"), # constructed
("192.0.2.44", "host-a1b2c3.customers.example.net"), # constructed
("192.0.2.99", None),
]
for ip, ptr in CASES:
print(f"{ip:<13} {str(ptr):<45} {', '.join(hints(ip, ptr))}")$ python3 ptr_hints.py
203.0.113.1 static.1.113.0.203.clients.your-server.de reversed address in name, word 'static'
203.0.113.25 ec2-203-0-113-25.compute-1.amazonaws.com address in name
198.51.100.7 pool-198-51-100-7.dyn.isp.example address in name, word 'dyn', word 'pool'
203.0.113.80 static.assets.example.com word 'static'
198.51.100.9 mail.example.com no hints
192.0.2.44 host-a1b2c3.customers.example.net no hints
192.0.2.99 None no PTR recordRead the output as hints about a name, never as a verdict about an address. The pool-and-dyn name is a hint, but only about how its owner named it. static.assets.example.com is flagged for the word static even though a name like that says nothing about how the address behind it is assigned, which is a false positive. mail.example.com and host-a1b2c3.customers.example.net raise no hint, and either could sit on a fixed or a leased address, which is a false negative. A missing record, like the 3.2.0.x pair above, gives no hint at all. The script is a reading aid and is not part of the lookup's response.
Registry data is coarser still. A WHOIS query for 3.224.50.60 returned a direct allocation of 3.128.0.0 to 3.255.255.255 under the netname AT-88-Z, a /9 block of 8,388,608 addresses. A netname labels a block that size, not the assignment of one host inside it. The ASN and the operator behind an address are useful for working out who to ask, and our guide to finding an ASN compares whois, DNS and API methods.
$ whois -h whois.arin.net 3.224.50.60 | grep -E '^(NetRange|CIDR|NetName|NetType|OrgName)'
NetRange: 3.128.0.0 - 3.255.255.255
CIDR: 3.128.0.0/9
NetName: AT-88-Z
NetType: Direct Allocation
OrgName: Amazon Technologies Inc.When the answer matters: allowlists, port forwarding and hosting
The answer matters most when something compares your address against a list. A destination that filters by source address will accept an entry today and may reject it later if the address behind it was leased and has changed, and nothing on your side will have changed. If you need a fixed address, ask your provider or platform for a reserved one, or send the traffic through a gateway that has one. Our GitHub Actions runner article walks through one case, where standard GitHub-hosted runners are described as using dynamic addresses, so the address from a passing run can break the next deploy.
Port forwarding and self-hosting raise the same question from the other direction, because people reaching you from outside need an address that stays. A dynamic DNS service, which updates a hostname when your address changes, lets people reach you by name. It does not help a destination that filters on the address itself.
The IPCheckHQ lookup is not a static or dynamic detector. It shows the reverse DNS name, the network and the connection type for any address, and none of those says how the address is assigned. Use it for the hints in check 4 and to see who runs the network, and use the router, your provider's terms and repeated checks for the answer. The reverse DNS lookup page shows the PTR name on its own and checks that it resolves back to the same address.
