On this page
  1. First: which IP do you want to change?
  2. The methods compared
  3. Method 1: Use a VPN (Windows and Mac)
  4. Method 2: iCloud Private Relay (Mac, Safari only)
  5. Method 3: Tor Browser (Windows and Mac)
  6. Method 4: Restart your router
  7. Method 5: Use your phone’s hotspot
  8. Method 6: A proxy (per app)
  9. How to change your local IP on Windows 11
  10. Option A: Release and renew (Command Prompt)
  11. Option B: Set a manual (static) IP
  12. Random hardware addresses
  13. How to change your local IP on a Mac
  14. Option A: Renew DHCP lease
  15. Option B: Set a manual IP
  16. Private Wi-Fi address
  17. After changing it: check for leaks
  18. FAQ
  19. How do I change my IP address on Windows 11?
  20. How do I change my IP address on a Mac?
  21. Does ipconfig /renew change my public IP?
  22. Is changing my IP address legal?
  23. Related guides
  24. Sources

Last reviewed: 2 November 2026 · By the CloakMyIPAddress Privacy Desk

Short answer: To change the IP address websites see, connect to a VPN (fastest, works anywhere) or restart your router (free, but often keeps the same IP). To change the local IP your router gives your computer, use ipconfig /release and ipconfig /renew on Windows or Renew DHCP Lease on a Mac. The two are different things, and most people want the first.

Check your current public IP first: What’s my IP?

First: which IP do you want to change?

Your computer has (at least) two IP addresses:

Public IPLocal (private) IP
Who assigns itYour ISP, to your routerYour router, to your computer (via DHCP)
Who sees itEvery website and app you connect toOnly devices on your home network
Looks likee.g. 84.50.x.x or an IPv6 addresse.g. 192.168.1.23 or 10.0.0.5
Why change itPrivacy, geo-restrictions, an IP block, testingFixing a conflict, setting up a game server or printer

If your goal is privacy or a different location, you need to change the public IP. More background: What is an IP address?

The methods compared

MethodChanges public IP?Hides location?CostPlatform
VPNYes, instantlyYes (choose country)Free tiers; paid ≈ €2–5/monthWindows, Mac
iCloud Private RelayYes, in Safari onlyApproximate region keptIncluded with iCloud+Mac
Tor BrowserYes, in Tor Browser onlyYesFreeWindows, Mac
Restart routerSometimesNoFreeBoth
Mobile hotspotYes (mobile network IP)NoUses mobile dataBoth
ProxyYes, per appYesFree to paidBoth
ipconfig / Renew DHCPNo (local only)NoFreeWindows / Mac
Static (manual) IPNo (local only)NoFreeBoth

Method 1: Use a VPN (Windows and Mac)

A VPN replaces your public IP with the VPN server’s IP for all apps, and encrypts traffic between your computer and the server so your ISP or the café Wi-Fi can’t see which sites you visit.

Steps (any major provider):

  1. Sign up and download the provider’s app for Windows or macOS (avoid unknown free VPN apps).
  2. Open the app, sign in, and choose a server country, or tap Quick connect for the nearest.
  3. Turn on the kill switch in settings so nothing leaks if the connection drops.
  4. Reload our IP checker to confirm the new IP and location.

Choosing one: look for an independently audited no-logs policy, a kill switch and WireGuard-based protocols. Options include Proton VPN (free plan, Swiss), Mullvad (no email needed, flat €5), Surfshark (unlimited devices), NordVPN and PIA (unlimited devices). For a research-based comparison of providers for EU users, see this best VPN for Europe guide.

Method 2: iCloud Private Relay (Mac, Safari only)

If you pay for iCloud+, Apple’s Private Relay sends Safari traffic through two relays, so websites see an IP from the second relay instead of yours.

  1. Open System Settings > click your name > iCloud > Private Relay, and turn it on.
  2. Under IP address location, choose Maintain general location (local content still works) or Use country and time zone (broader).

Private Relay covers Safari and some unencrypted app traffic only, not Chrome, Firefox or other apps, and you can’t pick a country. Apple notes it isn’t available in every country or region.

Method 3: Tor Browser (Windows and Mac)

Websites see a Tor exit relay’s IP; New Identity in the menu gets you a new one. Free and strong for anonymity, but slow and browser-only. See Tor vs VPN.

Method 4: Restart your router

Many home connections in Europe have a dynamic IP: your ISP assigns the router an address from a pool, for a lease period.

  1. Unplug the router (or modem) for 5–10 minutes. Some ISPs need longer, sometimes overnight.
  2. Plug it back in and check your IP.

Whether you get a new address depends on your ISP. Many keep the same IP for the same router for weeks. If you’re behind carrier-grade NAT (CGNAT), common on mobile and some fibre networks, you share a public IP with other customers anyway.

Method 5: Use your phone’s hotspot

Tethering to your phone puts you on the mobile network’s (often shared) IP. Handy to test whether a block is tied to your home IP; it doesn’t hide your country.

Method 6: A proxy (per app)

A proxy changes the IP for apps you configure, without encrypting everything. Windows: Settings > Network & internet > Proxy. Mac: System Settings > Network > Details > Proxies. See Proxy vs VPN.

How to change your local IP on Windows 11

Option A: Release and renew (Command Prompt)

  1. Press Start, type cmd, and open Command Prompt.
  2. Type ipconfig /release and press Enter (you’ll lose connection briefly).
  3. Type ipconfig /renew and press Enter.
  4. Type ipconfig to see your new IPv4 Address.

Your router may give you the same address again; that’s normal.

Option B: Set a manual (static) IP

  1. Open Settings > Network & internet, then Wi-Fi or Ethernet, and select your connection (on Wi-Fi, choose Hardware properties or the network’s properties).
  2. Next to IP assignment, select Edit, choose Manual, and turn on IPv4.
  3. Enter an IP address in your router’s range that isn’t in use (e.g. 192.168.1.50), the subnet mask (often 255.255.255.0), the gateway (your router, often 192.168.1.1) and a DNS server.
  4. Select Save.

A wrong static IP can cut your connection; switch back to Automatic (DHCP) to undo.

Random hardware addresses

Windows can use a random MAC address for Wi-Fi networks (Settings > Network & internet > Wi-Fi > Random hardware addresses). Your router then sees a “new” device and may assign a different local IP. It reduces tracking across Wi-Fi networks but doesn’t change your public IP.

How to change your local IP on a Mac

Option A: Renew DHCP lease

  1. Open System Settings > Network.
  2. Select Wi-Fi (or Ethernet), then Details next to your network.
  3. Click TCP/IP, then Renew DHCP Lease, and OK.

Option B: Set a manual IP

In the same TCP/IP tab, change Configure IPv4 to Manually and enter the IP address, subnet mask and router address. Click OK.

Private Wi-Fi address

Recent macOS versions offer a Private Wi-Fi address setting per network (System Settings > Wi-Fi > Details), which uses a different MAC address so networks can’t track your Mac across locations. Like Windows’ random hardware addresses, it changes what the router sees, not your public IP.

After changing it: check for leaks

A new IP is only useful if nothing reveals the old one:

  1. Check your IP shows the new address and location.
  2. Run the DNS leak test: DNS servers should belong to your VPN, not your ISP.
  3. Run the WebRTC leak test: browsers can expose your real IP through WebRTC.
  4. Run the IPv6 leak test if your ISP supports IPv6.

More: How to check if your VPN is working.

FAQ

How do I change my IP address on Windows 11?

To change the public IP that websites see, connect to a VPN or restart your router. To change your local IP, open Command Prompt and run ‘ipconfig /release’ then ‘ipconfig /renew’, or set a manual address under Settings > Network & internet > your connection > IP assignment > Edit.

How do I change my IP address on a Mac?

For your public IP, use a VPN or iCloud Private Relay in Safari. For your local IP, go to System Settings > Network > Wi-Fi > Details > TCP/IP and click Renew DHCP Lease, or choose Manually to set an address.

Does ipconfig /renew change my public IP?

No. It renews the local address your router gives your computer. Your public IP is assigned to your router by your ISP and changes only if the ISP gives the router a new one, or if you route traffic through a VPN or proxy.

Yes. Changing your IP with a VPN, proxy or router restart is legal in EU countries. Using a different IP to commit fraud or evade a lawful ban is not.

Sources