On this page
- First: which IP do you want to change?
- The methods compared
- Method 1: Use a VPN (Windows and Mac)
- Method 2: iCloud Private Relay (Mac, Safari only)
- Method 3: Tor Browser (Windows and Mac)
- Method 4: Restart your router
- Method 5: Use your phone’s hotspot
- Method 6: A proxy (per app)
- How to change your local IP on Windows 11
- Option A: Release and renew (Command Prompt)
- Option B: Set a manual (static) IP
- Random hardware addresses
- How to change your local IP on a Mac
- Option A: Renew DHCP lease
- Option B: Set a manual IP
- Private Wi-Fi address
- After changing it: check for leaks
- FAQ
- How do I change my IP address on Windows 11?
- How do I change my IP address on a Mac?
- Does ipconfig /renew change my public IP?
- Is changing my IP address legal?
- Related guides
- 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 IP | Local (private) IP | |
|---|---|---|
| Who assigns it | Your ISP, to your router | Your router, to your computer (via DHCP) |
| Who sees it | Every website and app you connect to | Only devices on your home network |
| Looks like | e.g. 84.50.x.x or an IPv6 address | e.g. 192.168.1.23 or 10.0.0.5 |
| Why change it | Privacy, geo-restrictions, an IP block, testing | Fixing 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
| Method | Changes public IP? | Hides location? | Cost | Platform |
|---|---|---|---|---|
| VPN | Yes, instantly | Yes (choose country) | Free tiers; paid ≈ €2–5/month | Windows, Mac |
| iCloud Private Relay | Yes, in Safari only | Approximate region kept | Included with iCloud+ | Mac |
| Tor Browser | Yes, in Tor Browser only | Yes | Free | Windows, Mac |
| Restart router | Sometimes | No | Free | Both |
| Mobile hotspot | Yes (mobile network IP) | No | Uses mobile data | Both |
| Proxy | Yes, per app | Yes | Free to paid | Both |
ipconfig / Renew DHCP | No (local only) | No | Free | Windows / Mac |
| Static (manual) IP | No (local only) | No | Free | Both |
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):
- Sign up and download the provider’s app for Windows or macOS (avoid unknown free VPN apps).
- Open the app, sign in, and choose a server country, or tap Quick connect for the nearest.
- Turn on the kill switch in settings so nothing leaks if the connection drops.
- 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.
- Open System Settings > click your name > iCloud > Private Relay, and turn it on.
- 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.
- Unplug the router (or modem) for 5–10 minutes. Some ISPs need longer, sometimes overnight.
- 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)
- Press Start, type cmd, and open Command Prompt.
- Type
ipconfig /releaseand press Enter (you’ll lose connection briefly). - Type
ipconfig /renewand press Enter. - Type
ipconfigto see your new IPv4 Address.
Your router may give you the same address again; that’s normal.
Option B: Set a manual (static) IP
- Open Settings > Network & internet, then Wi-Fi or Ethernet, and select your connection (on Wi-Fi, choose Hardware properties or the network’s properties).
- Next to IP assignment, select Edit, choose Manual, and turn on IPv4.
- 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.
- 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
- Open System Settings > Network.
- Select Wi-Fi (or Ethernet), then Details next to your network.
- 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:
- Check your IP shows the new address and location.
- Run the DNS leak test: DNS servers should belong to your VPN, not your ISP.
- Run the WebRTC leak test: browsers can expose your real IP through WebRTC.
- 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.
Is changing my IP address legal?
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.
Related guides
- How to change your IP address on iPhone and Android
- How to hide your IP address
- Why is my IP location wrong?
- IP address lookup explained
Sources
- Microsoft Support, Essential network settings and tasks in Windows (TCP/IP settings): https://support.microsoft.com/en-us/windows/essential-network-settings-and-tasks-in-windows-f21a9bbc-c582-55cd-35e0-73431160a1b9
- Microsoft Learn, ipconfig command reference: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig
- Microsoft Support, How to use random hardware addresses in Windows: https://support.microsoft.com/en-us/windows/how-to-use-random-hardware-addresses-in-windows-ac58de34-35fc-31ff-c650-823fc48eb1bc
- Apple Support, Change TCP/IP settings on Mac: https://support.apple.com/guide/mac-help/change-tcp-ip-settings-on-mac-mh14129/mac
- Apple Support, About iCloud Private Relay: https://support.apple.com/en-us/102602
- Apple Support, Use private Wi-Fi addresses on Apple devices: https://support.apple.com/en-us/102509
- Tor Project, Tor Browser manual (New Identity): https://tb-manual.torproject.org/managing-identities/
- IETF RFC 2131, DHCP: https://www.rfc-editor.org/rfc/rfc2131 · RFC 6598, shared address space for CGNAT: https://www.rfc-editor.org/rfc/rfc6598
