How to Change Your IP Address (Public and Local)

Easiest first: unplug your router, wait a bit, plug it back in. That changes your public IP on a lot of connections. Want a sure thing instead? Use a VPN, or ask your ISP outright. Your local IP (the 192.168.x.x one) is a different animal entirely — that one you fix by releasing and renewing the DHCP lease, or just typing in a new address yourself.

Public IP vs local IP: know which one you are changing

People ask us this constantly, so let's settle it. You've actually got two addresses, and they don't change the same way at all.

  • Public IP. Your ISP hands this to your router. Every device behind it — laptop, phone, smart TV, the lot — shares it. It's the address Netflix, your bank and every game server sees.
  • Local (private) IP. Your router hands these out itself, one per device, usually something like 192.168.1.23. Useless outside your own four walls.

Got blocked by a site, or it thinks you're in the wrong country? That's the public one you need to touch. Fighting an IP conflict, or setting up port forwarding for a game or a camera? That's local. (We've got a longer breakdown in public vs private IP addresses if the distinction still feels fuzzy.) One more thing before you start: note down what you've got now on the What's My IP Number page, so you actually know whether anything changed.

How to change your public IP address

1. Restart your modem or router

Most home connections get handed a dynamic address — meaning it can change. Pull the plug on the router (or the modem, if that's separate), wait, plug it back in. Sometimes that's all it takes.

Sometimes isn't always, though. A lot of ISPs will just hand you the exact same address back if your old lease hasn't expired yet — so a 10-second restart often achieves nothing. Leave it unplugged longer, anywhere from a few minutes to overnight, and your odds go up on most networks. Got fibre with PPPoE? Just reconnecting the session from the router's admin page is sometimes enough on its own. And if your ISP sold you a static IP, none of this will budge it — that's the whole point of static, so call them instead.

2. Ask your ISP

Landed on a blocklist somewhere, or just want something different? Call support. Some ISPs will issue a fresh dynamic address on the spot. Others will only move you by switching your plan between static and dynamic.

3. Use a VPN

A VPN doesn't touch the address your ISP gave you — it just means every site you visit sees the VPN server's address instead, in whatever city or country you picked. Fastest way to look like you're somewhere else, full stop. If you want the fuller comparison against Tor and proxies, we've written up how to hide your IP address.

4. Switch networks

Kill the Wi‑Fi, switch to mobile data, or tether your phone — any of these gets you a different public IP almost instantly. On a phone, flicking airplane mode on and off for a few seconds often grabs you a fresh mobile address too, though how often that actually changes is really down to your carrier.

A note on IPv6

If you're on IPv6, you may already be getting new addresses without lifting a finger. Windows, macOS, iOS and Android all rotate "privacy" addresses on their own over time — though the network prefix your ISP assigned underneath stays put until they change it.

How to change your local IP address

Your router's DHCP server is the one handing out local addresses, and releasing-and-renewing the lease is just asking it to do that again. One catch: plenty of routers recognise your device by its hardware (MAC) address and will just give the same IP straight back, especially if there's a DHCP reservation set up for it. Want it guaranteed different? Go change that reservation, or set a static address by hand.

Windows

Open Command Prompt as administrator and run:

ipconfig /release
ipconfig /renew

Then run ipconfig to see the new address. To set a specific address, go to Settings > Network & internet > Wi‑Fi or Ethernet > your connection > IP assignment > Edit, choose Manual, and enter the address, subnet mask, gateway and DNS servers.

macOS

Open System Settings > Wi‑Fi (or Network), click Details next to your connection, select TCP/IP and click Renew DHCP Lease. To set your own address, change "Configure IPv4" to Manually or "Using DHCP with manual address".

Linux

On systems using the classic ISC DHCP client:

sudo dhclient -r
sudo dhclient

On most desktop distributions, NetworkManager manages connections instead. Restarting the connection requests a fresh lease:

nmcli connection show
nmcli connection down "Connection Name"
nmcli connection up "Connection Name"

Check the result with ip addr.

iPhone and iPad

Go to Settings > Wi‑Fi and tap the (i) next to your network. Tap Renew Lease, or choose Configure IP > Manual to set an address yourself. The Private Wi‑Fi Address setting on the same screen controls whether the phone uses a randomised MAC address for that network; changing it makes the router see a "new" device, which usually results in a different local IP.

Android

The simplest method is to forget the network and reconnect: go to Settings > Network & internet > Internet (or Wi‑Fi), tap the network, choose Forget, then join again. To set a fixed address, edit the network, open the advanced options and change IP settings from DHCP to Static. Menu names vary by manufacturer.

Note: When setting a static local IP, pick an address in the same subnet as your router but outside the range its DHCP server hands out, or you risk an IP conflict with another device. Our router login guide explains how to view the DHCP range.

How to verify your new IP address

  • Public IP: reload the What's My IP Number page. It shows your current public IPv4 and IPv6 addresses, ISP and approximate location. If the address is unchanged after a router restart, your ISP has reassigned the same one.
  • Local IP: run ipconfig on Windows, ipconfig getifaddr en0 on a Mac (Wi‑Fi is usually en0), or ip addr on Linux, or look in the Wi‑Fi details screen on your phone.
  • Location: if you changed your address to fix a wrong region, look it up with the IP Lookup tool. Geolocation databases can take days or weeks to reflect a change.

When changing your IP helps, and when it does not

A fresh address genuinely fixes some problems: an IP conflict on your own network, a block that was really meant for whoever had your address before you, a connection stuck on a bad route, or simply wanting some distance from what you were doing on the old one. What it won't do is erase you from a site you're still logged into — the account itself remembers you, address or not. And if a service banned you on purpose, routing around it with a new IP can breach their terms, so tread carefully there. One more trap: if your old address got blocklisted because something on your network had malware, clean that machine first. Otherwise the new address just lands on the same blocklist a week later.

Frequently asked questions

Will restarting my router always change my IP address?

Not always — it really comes down to your ISP. A lot of them will reassign you the exact same address while your lease is still valid, and a static IP never changes no matter how long you leave the router off. Leaving it unplugged longer, or just calling your ISP, works more reliably than a quick restart.

Is it legal to change my IP address?

Yes, completely. Renewing a DHCP lease, restarting your router, running a VPN — none of that is against the law anywhere that matters. What you do with that new address afterward is still bound by ordinary law and by whatever terms of service you agreed to.

Does changing my local IP change my public IP?

No, they're unrelated. Your local address never leaves your router — no website ever sees it. Everything behind that router keeps sharing the same public IP regardless.

How often does my public IP change on its own?

Massively different ISP to ISP. Some leave you on one dynamic address for months at a stretch; others hand you a new one practically every time you reconnect.

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