How to change your IP address
Which address you change depends on what you need:
- To get a different public IP address, the one websites see, for example because a site blocked you, you want to appear in another country, or for privacy: see the first section.
- To change your device's private IP address inside your network, for example to fix an address conflict or give a printer a fixed address: see the second section.
See your current IP address before and after, to check that it changed.
Get a new public IP address
Restart your router
Most home connections have a dynamic address that your provider can change when your router reconnects. Unplug the router (and the modem, if separate), wait a few minutes, and plug it back in.
This doesn't always work: many providers give the same address back to the same router for days or weeks. Leaving the router off for longer, such as overnight, makes a new address more likely. Some routers' admin pages have a reconnect or renew button for the internet connection that does the same.
Switch to another network
Every network has its own public address. Turning off Wi-Fi on your phone to use mobile data, or connecting to another Wi-Fi network, changes the address websites see right away. Mobile networks often change it again every time you reconnect.
Use a VPN
A VPN sends your traffic through one of its servers, so websites see the server's address instead of yours. You can choose servers in other countries and switch whenever you like. It's the most flexible option, and it also hides your browsing from your internet provider. How VPNs work and how to choose one.
Afterwards, check that it works: that websites see the VPN's address and that your real one doesn't leak through WebRTC.
Use Tor or a proxy
The Tor Browser sends your traffic through three volunteer-run relays and changes the route regularly. It's free and very private, but slow, and many websites block it. A proxy changes the address for one app or browser, usually without encryption, so it's best for quick tests rather than privacy.
Ask your provider
Your internet provider can assign you a new address, and many offer a static IP address that never changes, sometimes for a fee. A static address is useful for hosting a server or for services that only allow known addresses, but it's less private, since it stays the same for years.
Change your private IP address
Your router hands out private addresses automatically (DHCP), so the simplest change is to ask it for a new one.
Get a new address from your router
- Windows: in Command Prompt, run
ipconfig /releaseand thenipconfig /renew. - Mac: System Settings › Wi-Fi › Details… › TCP/IP, then Renew DHCP Lease.
- iPhone and iPad: Settings › Wi-Fi › ⓘ next to your network, then Renew Lease.
- Android: turn Wi-Fi off and on, or tap your network and choose Forget, then reconnect.
The router may give the device the same address again, since it remembers devices it has seen.
Give a device a fixed address
For a printer, game console or home server that should always have the same address, the best way is a DHCP reservation: in your router's admin page (usually at 192.168.1.1 or 192.168.0.1), find the list of connected devices or the DHCP settings and reserve an address for the device. It then gets the same address every time, without any changes on the device itself.
You can also set a static IP address in the device's network settings, but pick one outside the range your router hands out, or two devices may end up with the same address.
What changing your IP address doesn't do
- It doesn't make you anonymous. Websites still recognise you by cookies, your login and your browser's fingerprint. Use a private window and log out to avoid that.
- It doesn't lift bans tied to your account. A new address only helps with blocks on the address itself.
- It doesn't change your private address for the outside world, or the other way round: the two are unrelated. Public vs private IP addresses.
Last updated