Skip to content

Guide

How to change your IP address

Your public IP address is the one websites see; your local one only works inside your network. Here is how to change each, and why a router restart often isn’t enough.

By Mark Stoumann ·

First, check which address you want to change. Your public IP address is the one on the IPLookr homepage: your provider assigns it to your connection, and every device at home shares it. Your local IP address, such as 192.168.1.23, identifies one device on your own network. Public vs private IP addresses explains the difference. Websites and online services only ever see the public one; printers, port forwarding and address conflicts at home are about the local one.

The ways to change your IP address at a glance

MethodChangesHow long it takesHow long it lasts
Restart your routerPublic IP, if your provider allowsMinutes to overnightUntil the provider changes it again
Switch to mobile dataPublic IPSecondsWhile you stay on that network
Use a VPNThe public IP websites see, in a country you chooseSecondsWhile the VPN is on
Ask your providerPublic IPDepends on the providerUntil it changes it again
Renew or reserve on your networkLocal IP of one deviceSecondsUntil the router assigns another; a reservation fixes it

People change their IP address for different reasons: a website or game has blocked their address, a streaming or shopping site shows the wrong country, they want to test how a site looks from elsewhere, or they simply don’t want sites to see their home address. Pick the method that fits: a block on your home address is solved by any new address, a country needs a VPN, and privacy needs more than a new address (see the FAQ below).

Change your public IP address

1. Restart your router

Turn your router off (and your modem, if it is a separate box), wait a few minutes and turn it back on. When it reconnects, it asks your provider for an address. Then reload IPLookr and compare.

Don’t be surprised if nothing changes. On many connections your provider’s server recognises your router by its hardware (MAC) address, and the DHCP standard tells it to give a returning device the address it had before, as long as nobody else has taken it. A longer break, overnight for example, sometimes works, because your old address may have gone to someone else in the meantime. Some providers hand out a new address at every reconnect anyway; it depends on how they run their network. A restart won’t help at all if:

  • you have a static IP address, which some providers include with business plans or sell as an extra;
  • you are behind carrier-grade NAT, where your provider shares one public address between several customers and decides which one you get.

Some routers can use a different MAC address towards the provider, a setting often called MAC clone. That can get you a new address, but some providers only accept the MAC address they registered for your connection, so you could lose your internet until you change it back.

2. Switch to another network

The fastest way to a different public address is a different connection: turn off Wi-Fi on your phone to use mobile data, or share your phone’s connection with your laptop. You are then on your mobile provider’s network, with one of its addresses. It isn’t a lasting change: back on your home Wi-Fi, you are back on your home address.

3. Use a VPN

A VPN doesn’t change the address your provider gives you. It sends your traffic through a server elsewhere, so websites see that server’s address instead. You can usually choose the country, connecting to another server gives you another address within seconds, and it only lasts while the VPN is on. Good VPNs are mostly paid services; one well-known provider is NordVPN. Read what is a VPN? for how to choose one, and how to hide your IP address for how VPNs compare with Tor, proxies and iCloud Private Relay.

If you buy NordVPN through our link, IPLookr may earn a commission. It costs you nothing extra and doesn't change what we write.

4. Ask your provider

If you need a new address for a good reason, for example because yours ended up on a blocklist after someone else misused it, ask your provider; it is the only one that can assign you a different address on request. Ask it, too, if you need the opposite: a static address that never changes, or a public IPv4 address of your own when you are behind carrier-grade NAT.

What about IPv6?

If your connection also has IPv6, your devices have IPv6 addresses as well, and modern systems already replace part of them regularly for privacy (see IPv4 vs IPv6). IPLookr only shows your IPv4 address, because our host accepts IPv4 connections only.

Change your local IP address

Your router hands out local addresses with DHCP, and renewing asks it for one again. Like your provider, though, the router usually gives a device the address it had before. To really get a different one, the device has to look new to the router, or you set the address in the router yourself. Not sure what your local address is now? See how to find your local IP address.

Windows

  1. Open Command Prompt: search for cmd in the Start menu.
  2. Run ipconfig /release. Your computer gives up its address and the connection drops.
  3. Run ipconfig /renew to ask the router for an address again.
  4. Run ipconfig and look for IPv4 Address.

For IPv6, the commands are ipconfig /release6 and ipconfig /renew6. Don’t try this over Remote Desktop: the release cuts the connection you are using.

Mac

  1. Choose Apple menu › System Settings, then click Network in the sidebar.
  2. Select the network service you use, such as Wi-Fi, and click Details.
  3. Click TCP/IP, then Renew DHCP Lease, then OK.

iPhone and iPad

  1. Open Settings and tap Wi-Fi.
  2. Tap ⓘ next to your network, tap Forget This Network, then Forget.
  3. Join the network again. You’ll need its password.

On iOS 18 and later, forgetting a network also makes your iPhone forget the private Wi-Fi address it used there, unless you already did this in the last 24 hours. The router sees a new device and usually hands out a different address. The same ⓘ screen has a Private Wi-Fi Address setting: Off, Fixed or Rotating, which changes the address every two weeks.

Android

  1. Open Settings and tap Network & internet › Internet. Names vary a little between phone makers.
  2. Touch and hold your network, then tap Forget.
  3. Join the network again with its password.

This doesn’t always give a new address. Since Android 10, phones normally use a random hardware address for each network that stays the same even after you forget and re-add it, so the router may recognise the phone. Android also lets you switch a network between a random address and the phone’s own in the network’s settings, usually under Privacy, which looks like a new device to the router.

Choose the address yourself

To give a device a specific address, or keep the one it has, set it in your router instead of on the device. A DHCP reservation (also called address reservation or a static lease) ties an address to the device’s MAC address, so it gets the same one every time. On NETGEAR routers, for example, it is under Advanced › Setup › LAN Setup. Two things to watch:

  • If the device uses a rotating private Wi-Fi address, switch it to a fixed one for that network, or the reservation stops matching.
  • If you type an address into the device itself instead (a static IP), pick one outside the range your router hands out, or two devices may end up with the same address.

Check that it worked

For a public address, reload the IPLookr homepage before and after. On another network or a VPN, the network name and location should change too. For a local address, look in your device’s network settings, or in the list of connected devices on your router’s settings page.

Frequently asked questions

What is the fastest way to change my IP address?

Switch networks: turn off Wi-Fi on your phone to use mobile data, and websites see your mobile provider’s address at once. A VPN is just as fast and lets you pick the country. Both last only while you stay on that network or VPN.

Can I change my IP address without a VPN?

Yes. Restart your router, ideally after a longer break, use another network such as mobile data, or ask your provider for a new address. For the local address of one device, renew its DHCP lease or forget and rejoin the Wi-Fi network.

How do I change my IP address to another country?

Use a VPN and connect to a server in that country. Websites then see the server’s address and place you there. Restarting your router or switching networks only ever gives you another address from a provider where you are.

Will restarting my router change my IP address?

Sometimes. Your provider usually gives your router the address it had before, so a quick restart often changes nothing. A longer break, another network or a VPN are more reliable. With a static IP address, a restart never changes it.

Is it legal to change my IP address?

Yes. Restarting your router, switching networks and using a VPN are normal and legal in most countries, although a few restrict VPNs. A new address doesn’t make anything allowed that wasn’t allowed before, and it doesn’t change a website’s rules about who may use it.

How often does my public IP address change by itself?

That depends on your provider. Some keep the same address for months; others change it whenever the connection restarts. Mobile connections change more often. To find out, note your address on IPLookr and check again in a few days.

Does a new IP address make me anonymous?

No. Websites can still recognise you by cookies, logged-in accounts and browser fingerprinting, and your provider still knows which address is yours. A new address changes one signal, not your identity.

Can I choose my public IP address?

Not from your own provider; it assigns them, and only a static IP plan gives you one that stays the same. With a VPN you can choose the country, and often the city, of the server whose address websites see.