Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeNo, for most people your public IP address is not always the same. It changes when you switch networks, when your provider reassigns a DHCP lease, when your phone reconnects through carrier-grade NAT, and when your device rotates IPv6 temporary addresses, by default about daily. Only a static IP stays fixed. Below: each connection type, a 3-step test, and why IP-based counting breaks.
What you will learn
- Home broadband IPv4 often stays put because DHCP tries to return the same address; mobile data and IPv6 change far more often
- An IP address is a network location at a point in time: it splits one person into many and merges many people into one
- Count people with a first-party ID or login, and expire IP blocks within hours or days
Is your IP address always the same? The short answer
For most people, no. The public IP address that websites see is assigned by whichever network you are on, and it changes when you switch networks, when your provider reassigns it, or when your device deliberately rotates it for privacy. Only a static address, usually bought as a business service, stays fixed.
How often it changes depends on the connection:
- Home broadband (IPv4): often stable for days, weeks or months, because the DHCP standard tells the server to try to hand back the same address. It changes after long outages, equipment swaps or provider reassignments.
- Mobile data: your phone usually shares a public IPv4 address with other subscribers through carrier-grade NAT, and the address websites see can change every time the data connection is re-established.
- IPv6: most phones and computers also create temporary addresses that rotate, by default about once a day.
- VPNs and relay services: the site sees the provider's address, which can change per connection.
This page answers the question one connection type at a time, gives you a three-step test for your own connection, and then shows why the instability matters for anyone who counts visitors or blocks traffic by IP. A different question, whether two devices can share one IP, is covered in are IP addresses unique to each device?.
Public IP vs private IP: which one are we talking about?
Every device on a home or office network has two kinds of address:
| Address | Who assigns it | Example range | Who sees it |
|---|---|---|---|
| Private (local) | Your router, by DHCP | 192.168.0.0/16, 10.0.0.0/8 | Only devices on the same network |
| Public | Your internet or mobile provider | Any routable address | Every website and server you connect to |
When people ask whether their IP address changes, they usually mean the public one, because that is what appears in "what is my IP" tools, server logs and analytics. Your laptop's private address (say 192.168.1.23) can stay the same for years while the public address of your router changes, or the reverse. Everything below is about the public address unless it says otherwise. Phones are covered in more depth in do phones have IP addresses?
How often each connection type changes your IP
| Connection | What assigns the public address | Typical change trigger | Standard or source |
|---|---|---|---|
| Home broadband, IPv4 | Provider's DHCP server, as a lease | Lease not renewed (long outage, modem swap), provider renumbering | RFC 2131 |
| Mobile data, IPv4 | Carrier-grade NAT shared by many subscribers | Data session re-established (airplane mode, tower change, reboot) | RFC 6888, RFC 6598 |
| Any network, IPv6 | Your device (temporary address) | New temporary address roughly daily by default | RFC 8981 |
| Public or office Wi-Fi | The venue's router behind its own public address | Every time you join a different network | Network topology |
| VPN or relay | The VPN or relay operator | Per connection or per session | Apple Private Relay documentation |
| Static business line | Provider, fixed by contract | Only when the contract changes | Provider agreement |
The rest of this section explains why each row behaves the way it does.
Home broadband: DHCP leases
RFC 2131, the DHCP standard, assigns addresses "for a limited period of time", called a lease. The client tries to renew at time T1, which defaults to half the lease, and if that fails, again at T2, which defaults to 0.875 of the lease. On a 24-hour lease that means renewal attempts at 12 hours and 21 hours.
Crucially, RFC 2131 also says the server attempts to return the same network address each time the client asks, checking first the current binding and then the client's previous address. As long as your modem stays online and renews on time, it usually keeps the same public IPv4 address. It tends to change when:
- the modem is off longer than the lease, so the address returns to the pool and goes to someone else;
- you replace the modem or router, so the provider sees a new hardware identity;
- the provider renumbers its network or moves you to a different address pool.
That is why rebooting a router sometimes changes your IP and sometimes does not: a quick reboot renews the existing lease.
Mobile data: carrier-grade NAT
There are not enough IPv4 addresses for every phone, so mobile carriers put many subscribers behind carrier-grade NAT (CGN). RFC 6888 defines it as a function that shares one public IPv4 address among several subscribers. RFC 6598 reserved a dedicated internal range for this, 100.64.0.0/10, which is why a phone's own network settings can show a 100.x address that no website ever sees.
RFC 6888 requires "paired" pooling by default: while your sessions are active, the CGN keeps mapping you to the same external address. When the data session drops and reconnects (airplane mode, moving between towers, switching from Wi-Fi back to mobile, a reboot), you can come back through a different public address. In practice that can mean several public IPs per day for one phone, each shared with strangers.
IPv6 temporary addresses
On IPv6 the device builds its own address from the network prefix. To stop websites from tracking a device by a fixed address, RFC 8981 defines temporary addresses. Its defaults are a preferred lifetime of 1 day and a valid lifetime of 2 days: a new temporary address is generated roughly every day, and older ones expire after two. A random delay is added so devices do not all rotate at the same moment.
So on an IPv6 connection, even a laptop that never leaves home can show a new public address every day. The network prefix stays the same for longer, but the full address does not.
VPNs and relay services
A VPN replaces your address with one belonging to the VPN server, and many VPNs assign a different server address on each connection. Apple's iCloud Private Relay goes further: Apple's support documentation says the second relay "generates a temporary IP address" for the connection, so the site never sees your real one. Apple also notes that, without your IP address, some websites may ask for extra steps to sign in.
| Connection | Assigned by | Typical change trigger | Source |
|---|---|---|---|
| Home broadband, IPv4 | Provider DHCP lease | Lease lapses, modem swap, renumbering | RFC 2131 |
| Mobile data, IPv4 | Carrier-grade NAT | Data session re-established | RFC 6888, RFC 6598 |
| IPv6 | Your device | New temporary address about daily | RFC 8981 |
| Public or office Wi-Fi | Venue router | Joining a different network | Network topology |
| VPN or relay | Operator | Per connection or session | Apple Private Relay docs |
| Static business line | Provider, by contract | Contract change only | Provider agreement |
Timers are defaults; providers and device settings can change them.
How to check whether your IP address changes: a 3-step test
You can test your own connection in a few minutes:
- Look up your public IP. Open any "what is my IP" page and write down both the IPv4 and, if shown, the IPv6 address.
- Reconnect. On a phone, toggle airplane mode for 30 seconds or switch from Wi-Fi to mobile data. On a computer, disconnect and reconnect Wi-Fi. Look up the address again.
- Compare IPv4 and IPv6 a day later. Check again after 24 hours without touching anything.
How to read the result:
- IPv4 unchanged after reconnecting and after a day: you are probably on a home broadband lease that renews in place (or a static line).
- IPv4 changed after toggling mobile data: you are behind carrier-grade NAT.
- IPv6 changed after a day while IPv4 did not: your device is using temporary IPv6 addresses, as RFC 8981 intends.
- Both look unrelated to your location: you are on a VPN or relay.
If you need an address that never changes, for example to be allow-listed by a partner's firewall, ask your provider for a static IP; consumer plans rarely include one.
Worked example: one person, one week, many IPs
Sample data: one person over seven days, using documentation-only address ranges.
- Home laptop, IPv4: 203.0.113.45 all week. The modem renewed its lease every 12 hours and kept the address.
- Home laptop, IPv6: a new temporary address each day, so 7 different addresses under 2001:db8:a::/64.
- Phone on mobile data: three public addresses, 198.51.100.7, 198.51.100.81 and 198.51.100.140, after a commute, a reboot and an airplane-mode flight. Each was shared with other subscribers.
- Office Wi-Fi: 192.0.2.10, shared with 50 colleagues.
To a server log this one person is 1 + 7 + 3 + 1 = 12 distinct IP addresses in a week, and one of those addresses also belongs to 50 other people.
Now scale it to a site. Sample data: 1,000 real people visit in one week.
| Group | People | Distinct public IPs seen | Why |
|---|---|---|---|
| Home broadband, stable IPv4 | 500 | 500 | Lease renewed in place |
| Mobile data behind CGN | 300 | 900 | 3 reconnects each |
| IPv6 with temporary addresses | 150 | 750 | Active 5 days, 1 new address a day |
| One office behind a single NAT | 50 | 1 | All share one address |
| Total | 1,000 | 2,151 |
Counting unique IPs gives 2,151 "visitors" for 1,000 people, an overcount of 2.15×. Inside that total the errors go both ways: 1,650 addresses belong to 450 people who were split apart, while 1 address hides 50 people merged into one.
1,000 people, distinct IPs in one week
sample weekWhy IP-based visitor counting and IP blocklists break
The example shows the two failure modes:
- Splitting. People on mobile data and IPv6 show up as many "visitors" because their address keeps changing. Returning-visitor rates fall, unique visitor counts rise, and conversion rate per visitor drops.
- Merging. Everyone behind an office NAT or the same carrier address looks like one visitor. Their visits are undercounted, and their behaviour is averaged together.
The same instability breaks IP blocklists over days and weeks:
- Block a mobile address because of abuse, and within hours the abuser has a new address while an innocent subscriber may inherit the blocked one.
- Block an office or university address, and you block everyone behind it.
- Allow-list by IP for an admin panel, and the allow-list breaks the next time the home lease changes or someone works from a café.
Rules of thumb that follow:
- Treat an IP address as a network location at a point in time, not as a person or a device.
- For counting people, use a first-party identifier or a login, not the address.
- For blocking abuse, combine IP with rate limits and behaviour, and expire IP blocks within hours or days.
- For privacy, don't store more of the address than you need; IP anonymization explains truncation and hashing.
How TapCub handles changing IP addresses
Apply the worked example to TapCub's counting:
- The address is not stored. In Configuration › Privacy center, the collector uses the IP address for geography and for the visitor hash, then discards it; it is not written on the event. By default it is truncated by 2 bytes before the city lookup, and geography can be set to country or none.
- Know what the default visitor ID is. Without cookies, the website script's visitor ID is a hash of a site salt with the address and browser data. That means the default anonymous count has the same weakness as any address-based method: the phone in the example that reconnected three times can appear as more than one visitor. On the strict preset the salt also rotates daily, so nobody is "returning" across midnight.
- Count people across networks with login. In identified mode (Pro or above and turned on by support, with collection tier 3 and analytics consent), a device ID is stored and
tapcub.loginbinds it to a person, so the laptop, the phone and the office visits in the example become one user in All-platform analytics › Users › People. Report in user mode when you need people rather than visitors. - Keep bots out. Crawlers and monitoring tools rotate addresses too; TapCub identifies them by several signals and counts them separately in Web analytics › Bots, so they do not inflate visitor counts.
TapCub does not offer IP-based blocking or allow-lists for your site; use your firewall or CDN for that, with short expiry times.
FAQ
Does your IP address change when you restart your router?
Sometimes. A quick restart usually renews the existing DHCP lease, and RFC 2131 tells the server to try to return the same address. If the router stays off longer than the lease, or you replace it, the provider is more likely to assign a new address.
Does your IP address change when you move to a different place?
Yes, whenever you join a different network. Home Wi-Fi, a café's Wi-Fi, your office and your mobile carrier each give you a different public address. Your device's own private address may also change, but websites only see the public one.
How often does a mobile phone's IP address change?
On mobile data it can change every time the data session is re-established, such as after airplane mode, a reboot or moving between towers, because the carrier shares public addresses through carrier-grade NAT. On IPv6 the phone also creates a new temporary address about once a day by default.
Can two people have the same IP address?
Yes, at the same time. Everyone behind one home router, office network or carrier-grade NAT shares the router's or carrier's public address. That is why an IP address identifies a network connection at a moment, not a person.
How do I get an IP address that never changes?
Ask your internet provider for a static IP address; it is usually a paid add-on or part of a business plan. Note that IPv6 temporary addresses on your devices will still rotate unless you change the device setting.
Sources
- IETF RFC 2131: Dynamic Host Configuration Protocol, sections 2.2, 4.3.1 and 4.4.5 (leases, address reuse, T1 = 0.5 and T2 = 0.875 of the lease).
- IETF RFC 8981: Temporary Address Extensions for Stateless Address Autoconfiguration in IPv6 (preferred lifetime 1 day, valid lifetime 2 days).
- IETF RFC 6888: Common Requirements for Carrier-Grade NATs (CGNs) (shared IPv4 addresses, paired pooling).
- IETF RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space (100.64.0.0/10).
- Apple Support: About iCloud Private Relay. Checked 2026-11-28.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Product Experience Specialist
Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.



