People want a different IP address for different reasons. A game or forum has banned the current one, a streaming site shows the wrong country, or someone in a chat has the address and you'd rather they didn't. Some of those need a new address from your own ISP. Others need the sites you visit to see an address that isn't yours at all.
Changing your IP gets you another address on the same connection, in roughly the same place. Hiding it means your traffic leaves the internet from someone else's server, and websites see that server's address and location. The methods below do one or the other, and none of them makes you anonymous on its own. If you only need a different address for one device on your home network, skip to change your local IP address.
Compare the methods
| Method | New IP? | Location sites see | Hides your browsing from your ISP? |
|---|---|---|---|
| Restart the router | Sometimes | Same area | No |
| Switch to mobile data or another Wi-Fi | Yes | That network's area | No |
| VPN | Yes, the VPN server's | The VPN server's | Yes, the ISP sees only the VPN |
| Proxy | Yes, for that app only | The proxy's | Only if the proxy connection is encrypted |
| Tor | Yes, an exit relay's | The exit relay's | Yes |
| iCloud Private Relay | Yes, for Safari and some app traffic | Your approximate area or country | For the traffic it covers |
With a VPN or Tor, your ISP sees that you're connected to a VPN server or to the Tor network, but not which sites you visit. It still knows who you are, because it's your connection. Restarting the router and switching networks don't change who can see what; they only get you a different address.
Get a new IP from your ISP
Most home connections get a dynamic address from the ISP. Restarting the router asks for an address again, but you won't necessarily get a new one. On connections that use DHCP, which includes cable and many fibre lines, the protocol is designed to return "the same network address each time the client requests an address" (RFC 2131 §2.2). DSL and some fibre lines use PPPoE instead, which behaves differently (see below). A client also renews its lease well before it runs out, by default at half the lease time (RFC 2131 §4.4.5). So a quick reboot often brings back the same address.
Check the router's status page before and after you try anything. It shows the WAN or internet address, and many routers also show the DHCP lease time, which tells you roughly how long the ISP holds an address for you.
What tends to work:
- Leave the router off for longer. If the lease expires while it's off, the ISP may give the address to someone else. Lease times vary by ISP, and ISPs don't usually publish them.
- On connections that use PPPoE (common on DSL and some fibre), each new session may get a new address. The router's admin page usually has a "reconnect" or "disconnect" button.
- Change the router's WAN MAC address. A DHCP server recognises a client by its client identifier or hardware (MAC) address (RFC 2131 §4.2), so many routers' "MAC clone" or "WAN MAC" setting can get you a new lease. Write down the original first: some ISPs only serve a registered MAC address, and you'll need to set it back if the connection stops working.
- Ask the ISP. If you're being harassed or attacked through your current address, many ISPs will assign a new one on request.
This doesn't help in two situations. With a static IP, the address is fixed by contract and restarting changes nothing. Behind carrier-grade NAT (RFC 6598), you share a public IPv4 address with other customers, and a restart may move you to another shared address or not at all. If you have IPv6, your device's IPv6 address may change anyway, because temporary IPv6 addresses rotate on their own. Only the device's part of the address changes, though; the prefix your ISP delegated to your connection usually stays the same, so sites can still tell it's the same network. IPv4 vs IPv6 explains how the two parts work.
Switch networks
Turning off Wi-Fi and using mobile data gives you the carrier's address instead of your home ISP's. On a phone that's already on mobile data, turning airplane mode on and off ends the data session, and the new session often comes with a different address. Another Wi-Fi network, at work, a café or a friend's, gives you that network's address. It's the quickest way to test whether a block is tied to your home IP. If a site works on mobile data and not at home, the block is on your home address. Why is my IP address blocked walks through the other causes.
The new address is still in roughly the same area, so location-based restrictions won't change. Mobile carriers often route traffic through gateways in another city, so a lookup may show a different city.
Change your local (private) IP address
The address a device uses on your home network, such as 192.168.1.20, is a private address your router hands out. Websites never see it, so changing it doesn't change what they see. You'd change it to give a console, printer or server a fixed address for port forwarding, or to clear an address conflict. Public vs private IP addresses explains the difference.
To ask the router for a new lease, run ipconfig /release and then ipconfig /renew in Terminal or Command Prompt on Windows (Microsoft: ipconfig), or use Renew DHCP Lease in the Mac's TCP/IP settings described below. The router may well give the same address back.
To choose the address yourself, pick one in the same subnet as the router but outside the range its DHCP server hands out, so no other device gets it. You'll need the address, the subnet mask (usually 255.255.255.0, entered as prefix length 24 on Android and Linux), the router's address as gateway, and a DNS server; the router's address usually works there too.
- Windows 11: open Settings > Network & internet, then select Ethernet and your network, or Wi-Fi > Manage known networks and the network. Next to IP assignment, select Edit, choose Manual, turn on IPv4, fill in the IP address, subnet mask, gateway and preferred DNS, and select Save (Microsoft).
- macOS: open System Settings > Network, select the service (Wi-Fi or Ethernet), click Details, then TCP/IP. Set Configure IPv4 to Manually and enter the IP address, subnet mask and router (Apple). The DNS server goes under DNS in the same window.
- iPhone and iPad: go to Settings > Wi-Fi, tap the info button next to the network, tap Configure IP and choose Manual. Configure DNS is further down the same screen.
- Android: open the saved Wi-Fi network's settings (Settings > Network & internet > Internet on Pixel phones, Settings > Connections > Wi-Fi on Samsung), edit the network, open Advanced options (View more on Samsung) and change IP settings from DHCP to Static. Menu names vary by maker and Android version.
- Linux with NetworkManager: find the connection's name with
nmcli connection show, then set the method to manual and bring the connection up again (NetworkManager settings):bash nmcli connection modify "Home Wi-Fi" ipv4.method manual \ ipv4.addresses 192.168.1.50/24 \ ipv4.gateway 192.168.1.1 ipv4.dns 192.168.1.1 nmcli connection up "Home Wi-Fi"
Many routers can also reserve an address for a device in their DHCP settings, often called a DHCP reservation or static lease. The device keeps getting the same address while its own settings stay on automatic, so there's nothing to undo on the device later.
Use a VPN
A VPN creates an encrypted tunnel from your device to a server run by the VPN provider. Your traffic leaves the internet from that server, so websites see the server's IP address instead of yours.
How a VPN changes your IP location
Websites estimate location from the IP address they see, and with a VPN that's the VPN server's address. IP geolocation then places you wherever the lookup data places that server. Usually that's the country you picked in the VPN app, but not always. VPN servers mostly run in data centres, on address blocks that may be registered in one country and used in another. A lookup can then show the registration country instead of the one the VPN app shows. How accurate is IP geolocation? explains where those estimates come from.
You can see what sites see by connecting the VPN and opening What is my IP. It shows the address and the location, ISP and network that go with it. If the ISP field names a hosting company rather than a broadband provider, that's the VPN server's network.
What a VPN doesn't hide
VPN adverts often promise anonymity. A VPN hides your IP address from the sites you visit, and hides the sites you visit from your ISP. It doesn't stop the sites recognising you by other means:
- If you log in, the site knows who you are whatever your IP address.
- Cookies and site storage set before you connected still identify your browser.
- Your browser's user agent, screen size, fonts and other settings together can identify a browser. What is my user agent shows part of what every site receives.
- The VPN provider sees your real IP address and which servers you connect to. You're moving that visibility from your ISP to the VPN company.
Use a proxy
A proxy relays traffic for one application, usually a browser, or for one protocol. The site sees the proxy's address. Unlike a VPN, it only covers what you configure to use it, so other apps on the same device still use your real address. Many proxies don't encrypt the connection between you and them. Free web proxies have the same trust problem as any VPN: whoever runs the proxy sees your traffic.
Use Tor
Tor Browser sends traffic through three relays run by volunteers: a guard, a middle relay and an exit. Each relay knows only the one before and after it. The site you visit sees "the IP address of the exit relay instead of the real IP address of the Tor user" (Tor Project).
Tor gives you more protection than a VPN because no single relay knows both who you are and where you're going. It's also slower, and many sites block or challenge Tor traffic, because the relay list is public and exit addresses are easy to identify. The exit location changes when Tor builds new circuits, so the country a site sees can change during a session.
iCloud Private Relay and similar relays
iCloud Private Relay, part of an iCloud+ subscription, sends Safari browsing, DNS lookups and unencrypted (http) app traffic through two relays (Apple Developer). Other apps' encrypted traffic doesn't go through it. Your network provider and Apple's first relay see your IP address, and the second relay, run by a third-party content provider, connects you to the website with a temporary IP address (Apple: About iCloud Private Relay). Apple says no single party, including Apple, can see both who you are and which sites you visit.
Private Relay isn't built to change your country. Under IP Address Location you can choose "Maintain general location", so sites can show local content, or "Use country and time zone", which makes your location more obscure (Apple). Either way, sites still see an address in your country. Apple publishes the relay egress ranges with their approximate locations, so sites can recognise them. It's not available in every country or region.
Test for leaks after you connect
A VPN or relay only hides your address if all your traffic goes through it. Test with the VPN connected.
IPv6 leaks
Some VPN setups tunnel only IPv4 traffic. If your connection has IPv6, your browser connects to sites that support it over IPv6 outside the tunnel, with your real address, while your IPv4 address looks hidden. Open What is my IPv6 with the VPN on. It should show the VPN's IPv6 address or find no IPv6 address at all. If it shows your ISP's address, look for an IPv6 or leak-protection setting in the VPN app. What is my IPv4 shows an IPv4 address only when the visit itself used IPv4, so on a connection with both it may show none; if it does show one, it should be the VPN's.
DNS leaks
Before your browser connects to a site, it looks up the site's name in DNS. If those lookups still go to your ISP's resolver outside the tunnel, the ISP can see which sites you visit even though the traffic itself goes through the VPN. To check, open a DNS leak test page with the VPN connected (search for "DNS leak test"; several VPN providers run free ones). It makes your browser look up a few random names and lists the resolvers that asked for them. If any of them belong to your ISP, turn on the VPN's own DNS or leak-protection setting.
Encrypted DNS, DNS over HTTPS (RFC 8484) or DNS over TLS (RFC 7858), stops the network from reading your lookups. It doesn't hide your IP address from the sites you visit.
WebRTC leaks
WebRTC lets browsers make direct calls and video connections. To do that, the browser gathers its network addresses and can share them with the page. RFC 8828 defines four modes for which addresses a browser may expose, and says that without user consent browsers should use mode 2: the interface on the default route, plus the private addresses on that interface. The first of the three leaks the RFC describes, and the one it calls most significant, is the split-tunnel VPN: WebRTC could reveal both the VPN's public address and the ISP's public address underneath. With a full-tunnel VPN and a current browser, the default route is the VPN, so a WebRTC test page should show no address from your ISP. If it shows your ISP's address, check the VPN's split-tunnel setting or the browser's WebRTC settings.
FAQ
Is it legal to hide my IP address?
Using a VPN, a proxy or Tor is legal in most countries. Some countries restrict or ban VPNs, so check the law where you are. Separately, a website's or game's terms of service may forbid using them to get around a ban or a regional restriction, and the service may close your account for it.
Does restarting my router change my IP?
Sometimes. Many ISPs give the same address back when the router reconnects quickly, because DHCP is designed to. Leaving it off for longer, reconnecting a PPPoE session, or asking the ISP works more often. With a static IP or carrier-grade NAT, a restart won't change the public address the way you'd expect.
Can websites tell I'm using a VPN?
Often. The network an address belongs to is public: an IP lookup shows its ISP, organization and ASN. A site that sees a visitor from a hosting company's network can treat that as a sign of a VPN or proxy. Detecting data centre IPs by ASN shows how sites do that. IP lookup shows what the network fields say for any address.
Does incognito mode change my IP?
No. Private or incognito windows don't keep history and cookies after you close them, but they connect from the same IP address as a normal window. Sites and your ISP see the same address either way.
Next: if you're worried about what your address gives away, read can someone find your location from your IP address.