X

How to Change Your IP Address With and Without a VPN

You can refresh your IP address using several methods. Here's how to do it with a VPN, a proxy server, restarting your router, and manually or automatically updating it on your device.

Moe Long Senior Editor
Moe enjoys making technical content digestible and fun. As a writer and editor for over a decade, he has bylines at MakeUseOf, WhistleOut, TechBeacon, DZone, Tech Up Your Life, and Electromaker. When he's not hammering away at the keyboard, Moe enjoys spending time with his partner and dog, listening to vinyl, and watching film.
Expertise Apps | Operating systems | Software
Moe Long
7 min read
Phone screen showing wireless is turned on
Sarah Tew/CNET

Your public IP address, which is assigned to your router by your internet service provider, contains information about your general geographic location and ISP. On the other hand, each device on your local network has a private IP address. Often, you don't have to think about an IP address -- they're automatically assigned to internet-connected devices. But sometimes you’ll have to get a new IP address.

There are several ways to get a fresh IP address, including a virtual private network, a proxy server, rebooting your router or manually obtaining a new IP. Here are all the ways you can change your IP address.

What is an IP address?

An Internet Protocol -- or IP -- address is a unique string of numbers used to identify an internet-connected device. There are two types of IP addresses: public IP addresses and private IP addresses. An IP address falls within the ranges of 0.0.0.0 and 255.255.255.255.

A public IP address gets assigned by your ISP to your router. Your public IP address is like a phone number. Similar to your cell phone number, your IP address contains information about your geographical location. You can look up your own IP address using a website like the aptly-named WhatIsMyIPAddress, where you’ll find information such as your internet service provider and your approximate region.

On the other hand, a private IP address is only accessible by other devices on your local network -- meaning devices connected to your Wi-Fi router or hardwired into your modem. Most private IP addresses start with 192, 172 or 10 -- although public addresses can begin with a 192 or 172 as well.

Why would you want to change your IP address?

Often, you don't even have to think about your public and private IP addresses. But there are several reasons why you may want to change your IP address.

  • Privacy: If you can view info like your ISP and general physical location by looking up your public IP address, other entities -- your ISP, websites you visit or apps you use -- can glean data about you from the websites you visit and apps you use. You might want to change your public IP address for privacy reasons. 
  • Streaming: Some apps and websites, like streaming services, are region-restricted, so you can't access them outside certain countries. A new public IP address from a specific country can help unblock geo-protected content, like foreign Netflix libraries.
  • Throttling or censorship: You can change your public IP address to circumvent censorship, like viewing websites blocked by your government or school administration. Likewise, a fresh public IP address could allow you to bypass throttling restrictions from your ISP or mobile carrier.
  • Troubleshooting: Changing your private IP address may help you get your device working again if there's an issue with its connectivity to your router or modem, which is helpful for IT troubleshooting.

How to change your IP address using a VPN

A laptop and mobile devices
James Martin/CNET

A VPN reroutes your traffic through an encrypted server so that apps and websites don't view your public IP, but that of the server you're connected to. Essentially, it makes apps or websites think you have a different public IP address. Your ISP can't see your online activity, like the apps you're using or websites you're visiting, and sites or apps view your traffic as originating from your VPN company's server. VPNs are great for situations where you want extra privacy, need to access geo-blocked content or have to bypass throttling restrictions and censorship. A doesn't change your device's private IP address.

Here's how to hide your IP address with a VPN:

  1. Sign up for a plan with a VPN provider.
  2. Download and install a VPN app on your device.
  3. Open the newly installed VPN app and sign in.
  4. Enable your VPN and select your preferred server.

The exact process for using a VPN varies slightly by device. You can quickly test whether your VPN is working correctly by looking up your IP address with your VPN toggled off and then on -- the IP addresses shouldn't match.

How to change your IP address using a proxy server

A proxy server and VPN are similar because they're both middlemen between your device and the internet. Like VPNs, proxies hide your public IP address from apps and websites. However, a proxy server doesn't encrypt your connection, so the connection isn't as secure or private as a VPN. A proxy may work for basic pseudo-anonymity for web browsing or streaming videos, but for an encrypted connection, you'll need a virtual private network. Before I switched to a VPN, I used a proxy service -- GetFlix -- to unblock geo-restricted content, like streaming TV shows from the Canadian Broadcasting Corporation while in the US.

Setting up a proxy server differs depending on the platform you're using. Generally, you'll configure your proxy server address in your device's settings, enable your proxy and choose an IP address. Some proxy services include user-friendly apps, so you can just download an app, sign in, start your proxy and pick a server.

How to change your IP address by resetting your router

A wireless router with antenna extended
Ry Crist/CNET

Rebooting your router is a simple method for obtaining a new IP address:

  1. Check your IP address and make a note of it.
  2. Unplug your router for a minimum of 5 minutes (but depending on your ISP and router/modem, this could take longer).
  3. Plug your router back in -- it may take a few minutes for your internet connection to return.
  4. Reconnect your device to your network if it doesn’t automatically do so.
  5. Recheck your IP address -- this time, it should be different than it was when you first looked.

Your router assigns IP addresses to each connected device, so resetting it is supposed to make it forget your gadget and dole out a fresh IP address -- both a new private IP address for each device on your network and a new public IP address. Usually, it works, but sometimes it doesn't. If you still see the same public IP address from before after a router reboot, try resetting your router again or for a longer period of time -- even up to a day. Folks with a separate router and modem may need to reset both networking devices to obtain a new IP address. And resetting your router to get a new public IP address only works if your ISP gives assigns a dynamic IP address, which some don't.

How to change your IP address automatically or manually

System preferences on a laptop
Sarah Tew/CNET

While rebooting your router, using a VPN or a proxy all can change your public IP address, you may need to get a new private IP address. For instance, you may want to change your private IP address if you're experiencing internet connectivity issues on one specific device, or if you'd like to set a static IP address. Most devices let you easily update your private IP address automatically, meaning you won't need to know a free IP address to use, unlike manually configuring an IP.

Updating your IP address automatically is more user-friendly -- you won't need to know a free IP address on your network to use. But sometimes you'll want to manually add an IP, like if you're running a home server and wish to assign a static IP address -- for example, I host a Plex server and have a static IP address set up. That way, when I want to transfer files to and from my Plex server, I can do so easily because that private IP address doesn't change. Here's how to update your IP address manually and automatically on different platforms.

How to change your IP address on Windows

To automatically refresh your IP address:

  1. Open the Run dialog box by simultaneously pressing the Windows key and R button (Win + R). Alternatively, you can head to the Start Menu and search for Run.
  2. Type CMD and tap Enter to open a command prompt.
  3. Type ipconfig /release and hit Enter to give up the current IP address of your Windows machine.
  4. Type ipconfig /renew and tap Enter to get a new IP address automatically.

To manually update your IP address:

  1. Head to Start.
  2. Go to Settings.
  3. Select the Network & internet tab.
  4. Click Wi-Fi if you're using a wireless network or Ethernet for a wired connection.
  5. For Wi-Fi, select [network name] properties (for instance, my W-Fi name is WuTangSecret, so I clicked WuTangSecret properties). With Ethernet, you don't need to select anything else to get to the IP assignment screen.
  6. Next to IP assignment, click Edit.
  7. Click Manual.
  8. Toggle on IPv4 or IPv6, whichever you'd like to use or your router and modem support.
  9. Punch in the IP address you want to use.  

Alternatively, you can switch your IP address from the Control Panel:

  1. Head to Start.
  2. Open the Control Panel.
  3. Click Network and Internet.
  4. Visit the Network and Sharing Center.
  5. Select your network.
  6. Choose Properties.
  7. Click TCP/IP.
  8. Punch in the IP address you want to use. 

How to change your IP address on Mac

To automatically get a new IP address:

  1. Visit System Settings.
  2. Click Network.
  3. Select Wi-Fi, then the Details button next to your network.
  4. Select TCP/IP.
  5. Pick Renew DHCP Lease.

To manually obtain a fresh IP address:

  1. Go to System Settings.
  2. Click Network.
  3. Select Wi-Fi, then the Details button next to your network.
  4. Click TCP/IP.
  5. Choose Configure IPv4 > Manually or Configure IPv6 > Manually.
  6. Type in your desired IP address.

How to change your IP address on Linux

  1. Open the Application (you can do this by pressing the super key, which is the Windows button or Command key on an Apple keyboard).
  2. Launch the Connections application.
  3. Select your network, then click the IPv4 or IPv6 tab.
  4. Switch Method to Manual.
  5. Enter the IP address of your desired DNS server in the DNS Servers section.

Note that these instructions might vary slightly depending on the specific Linux operating system you're using, but should generally be the same for most Debian-based OSes, like Ubuntu, Kubuntu or Linux Mint.

How to change your IP address on Android

  1. Head to Settings.
  2. Tap Wi-Fi.
  3. Press the i button beside the Wi-Fi network you're connected to.
  4. To automatically get a new IP address: Tap Forget to disconnect from your wireless network — it's a trashcan icon. Then reconnect to your Wi-Fi network and you should get a new IP address.
  5. To manually refresh your IP address: Tap IP settings. Select Static. Enter the IP address you'd like to use.

How to change your IP address on iOS and iPadOS

  1. Go to Settings.
  2. Tap Wi-Fi.
  3. Select your wireless network.
  4. Press Configure IP.
  5. Pick Automatic to automatically refresh your IP address, or tap Manual, then punch in an IP address of your choice.

How to change your IP address FAQs

Is it possible to change your IP address?

It is possible to change your IP address. You can refresh your IP address using a VPN, with a proxy server, by restarting your router or manually and automatically refreshing your IP address on your device.

Is it legal to change your IP address?

In the US, it is legal to change your IP address. Often, your IP address may even update automatically when reconnecting to your Wi-Fi network. But altering your device’s IP address to impersonate a person or business, which is called IP spoofing, could violate the US Computer Fraud and Abuse Act. So long as you’re abiding by local laws, simply changing your IP address should be completely legal.

Can you change your IP address for free?

You can change your IP address for free. In fact, most methods for getting a new IP address -- manually or automatically updating your IP address and restarting your router -- don’t cost any money. Using a proxy server or VPN service might, although you can use a free VPN like Proton VPN’s no-cost tier to change your IP address without spending a dime.

Does resetting a router change your IP address?

Yes, restarting your router normally changes your IP address if you’re using a dynamic IP address. But if you’re using a static IP, it won’t automatically update with a router reset -- instead, you’ll need to manually update it.

Does your IP address change when you use different Wi-Fi?

Yes, your IP address changes when you use a different Wi-Fi network. However, you can establish a static IP address so you’ll always use the same private IP address on a particular wireless network, but you can’t configure the same IP address to use across all Wi-Fi networks.

How can you look up your current IP address?

You can quickly find out your current public IP address by using a website like WhatIsMyIPAddress.