Why Does My IP Address Change?

Your IP address changes because most internet providers and home routers hand addresses out dynamically: each one is leased for a limited time, and a new address can show up whenever the lease expires, your router reconnects, you switch networks, or you flip on a VPN. Need an address that never budges? You'll have to ask your provider for a static IP, or lean on a service that doesn't depend on your IP at all.

There are actually two different addresses in play here, and they change for entirely different reasons. Your public IP address is the one websites see, assigned by your internet service provider (ISP). Your local (private) IP address — something like 192.168.1.23 — gets assigned by your own router instead, and only matters inside your home or office network. This guide covers both.

Dynamic addressing is the default

Nearly every consumer internet connection runs on dynamic addressing. Instead of permanently assigning each customer a fixed address, the ISP just keeps a pool and hands addresses out on request. That lets the provider reuse addresses from customers who've gone offline, reorganize its network without having to contact anyone, and keep fixed addresses in reserve for business plans. Our guide to static vs dynamic IP addresses compares the two models in detail.

Dynamic doesn't have to mean "changes constantly," though. Plenty of cable and fiber customers keep the exact same public IP for months on end, simply because the ISP's systems prefer handing a returning device the address it had before. Others get a fresh address every single day. Which camp you fall into depends entirely on how your provider has set up its network.

Why your public IP address changes

DHCP lease expiry and renewal

On most cable and fiber networks, your modem or router grabs its public address through DHCP (Dynamic Host Configuration Protocol). That address is really a lease with an expiry time attached. Your router normally renews it halfway through, and as long as it keeps renewing, it usually hangs onto the same address. Switch the router off long enough for the lease to lapse, though, and the ISP may well hand that address to someone else — so you get a new one the moment you're back online.

Router or modem restarts

Restarting your equipment won't always change your IP, but it certainly can. When the router reconnects it requests a fresh lease, and whether you get the old address back is entirely up to the ISP. Replacing the router outright has a bigger effect: DHCP servers commonly identify clients by their MAC address, so a new router looks like a brand-new customer and often gets handed a different IP as a result.

PPPoE sessions

A lot of DSL connections, and some fiber ones, use PPPoE, where the router logs in with a username and password. On these networks, a new address typically gets assigned every time the session re-establishes — after a restart, a line drop, or a scheduled disconnect. Some ISPs even end sessions on purpose at intervals, which produces a new IP like clockwork.

ISP network changes

Providers renumber their networks, shuffle customers between equipment, or swap address blocks between regions entirely. When that happens, your address changes even though nothing at home was touched. It's also a common reason the location shown for your IP suddenly jumps to a different city overnight.

Mobile data

Phones and mobile hotspots churn through public IP addresses constantly, often whenever the data connection re-establishes — after airplane mode, a reboot, or just a long stretch of inactivity. Mobile carriers also put plenty of customers behind carrier-grade NAT (CGNAT), so the public address you see is shared with other subscribers and drawn from a pool that can shift between connections.

VPNs, proxies and private relays

Connect to a VPN and your visible IP gets swapped for one belonging to the VPN server instead. Switch servers, reconnect, or let the VPN app pick the "fastest" location, and the address websites see changes right along with it. Services like iCloud Private Relay rotate addresses too. IP looking unfamiliar all of a sudden? Check whether a VPN or relay is active before assuming anything else is wrong.

Switching networks

Your IP belongs to whatever network you're connected to, not to your device itself. Move from home Wi-Fi to mobile data, to an office network, to a café hotspot, and you get a completely different public address each time.

IPv6 addresses change on purpose

Got IPv6 support on your connection? You might notice that address changing even more often than your IPv4 one — and that's usually entirely by design. Modern operating systems use temporary privacy addresses (defined in RFC 8981, which replaced RFC 4941): the device generates a random interface identifier for outgoing connections and swaps it out periodically, typically about once a day, so no website can track a device by a permanent address.

On top of that, some ISPs change the IPv6 prefix delegated to your router after a reconnect, which shifts the first half of every address in your home all at once. Between both mechanisms, a changing IPv6 address is rarely anything to worry about.

Why your local IP address changes

Inside your own network, the router runs its own DHCP server and leases out private addresses to your devices. A device's local IP can shift when:

  • The lease expires while the device is away, and the router hands that address to something else instead.
  • The router gets reset or replaced, changing its DHCP pool or subnet — from 192.168.0.x to 192.168.1.x, say.
  • The device uses a private or randomized MAC address for Wi-Fi. iPhones, Android phones, Windows and macOS can all present a different MAC address per network, or rotate it over time, so to the router it just looks like a brand-new device showed up. See our guide to MAC addresses for how this actually works.

Local IP changes matter most when you've set up port forwarding, a network printer, or a home server that other devices need to reach by address. The fix is a DHCP reservation: in the router's settings, bind a fixed IP to the device's MAC address. If the device is using a private Wi-Fi address, either reserve that address specifically or just turn the feature off for your home network so the MAC stays put.

How to check whether your IP has changed

  1. Open the What's My IP Number page and note your public IPv4 and IPv6 addresses.
  2. Check them again later, or after a router restart, and compare.
  3. Use What is my ISP to confirm which provider and network the address belongs to. If the ISP name is a VPN or hosting company, a VPN or proxy is active.
  4. For your local address, run ipconfig on Windows or ipconfig getifaddr en0 on macOS, or check the device list in your router.

How to get an IP address that stays the same

GoalOptionNotes
Fixed public IPv4Static IP from your ISPOften only on business plans or as a paid add-on; ask your provider.
Reach a home server by nameDynamic DNS (DDNS)A small client on your router updates a hostname whenever the IP changes. Does not work behind CGNAT.
Fixed address you controlVPN with a dedicated IPMany VPN providers sell a dedicated address that stays the same across sessions.
Remote access without a public IPTunnels or mesh VPNsOutbound tunnel services and mesh VPNs work even when your IP changes or is shared.
Stable local IPDHCP reservationSet in the router; free and works for any device.
Note: Want the opposite — a new IP address on demand? Restarting the router or reconnecting mobile data sometimes does the trick, but not on every network. Our guide on how to change your IP address lists the methods that actually work reliably.

Frequently asked questions

Is it bad if my IP address changes?

Not at all. A changing IP is perfectly normal and has zero effect on everyday browsing, streaming or gaming. It only becomes a problem when something depends specifically on your address — a firewall allowlist at work, a self-hosted server, a remote camera reached by IP.

Why does my IP change every time I restart the router?

Your ISP is probably running PPPoE or short DHCP leases and just doesn't bother trying to reassign the previous address. Some providers keep the same address across restarts, others don't — and there's no setting on your end of the router that changes this. Only the ISP can give you something fixed.

Can someone else get my old IP address?

Yes. Once an address goes back into the ISP's pool, it can land on another customer entirely. That's exactly why IP addresses make such a weak way to identify a person over time, and why your shiny new address might already be sitting on a blocklist thanks to its previous owner.

Why does my IP show a different city after it changes?

Geolocation databases map address blocks to places, and different blocks from the very same ISP can be registered to different cities, or just to a central hub somewhere. So a new address can appear to be located somewhere else entirely, even though you haven't moved an inch.

Essayez vous-même

Mettez ce guide en pratique avec nos outils gratuits.

Commentaires

Partagez une astuce, posez une question ou racontez comment l’outil a fonctionné pour vous.

À lire aussi

Copié dans le presse-papiers