TrueSocks

Security · 7 min

How to Change Your IP Address: 7 Methods That Work

  • TrueSocks editorial team
  • 7 min read

To change your public IP address, restart your router or modem, switch to a different network such as mobile data, or route your traffic through a VPN or a proxy. Restarting only works if your provider hands out dynamic addresses, and a VPN changes the IP for the whole device, while a proxy changes it only for the apps you choose and can give each app its own address. Before you start, it helps to know which IP you actually want to change: the public one websites see, or the private one inside your home network. This guide covers both, step by step.

Key takeaways

5 points
  • Websites see your public IP, assigned by your internet provider; ipconfig and DHCP renew change only the private IP inside your network.
  • A router restart gives a new public IP only on dynamic plans, and often not on the first try.
  • Switching to mobile data or toggling airplane mode usually changes the IP, because carriers assign addresses from shared CGNAT pools.
  • A VPN changes the IP for the whole device; a proxy changes it per app and lets different profiles use different IPs at the same time.
  • Always confirm the result with an IP check, and test for WebRTC and DNS leaks if you use a browser.

Public vs private IP: which one are you changing?

#

Your device usually has two kinds of addresses. The private IP (for example 192.168.1.23 or 10.0.0.5) identifies it inside your home or office network and is assigned by your router. The public IP is assigned by your internet provider to the router itself and is the address every website sees. All devices behind one router share the same public IP.

Private IPPublic IP
Who assigns itYour router (DHCP)Your internet provider
Who sees itDevices on your local networkEvery website and service you connect to
Typical ranges10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16Any routable address
How to change itDHCP renew, static IP in network settingsRouter restart, new network, VPN, proxy, ask the ISP
Private ranges are defined in RFC 1918 and are not reachable from the internet.

If your goal is how websites see you, focus on the public IP. Check it first so you can compare later: open any IP lookup page, or run curl https://api.ipify.org in a terminal.

Method 1. Restart your router or modem

#

Most home broadband plans use dynamic public IPs. When the router reconnects, the provider may assign a different address from its pool. Whether it actually changes depends on the provider: some keep the same address for days through long DHCP leases, some tie it to your modem's MAC address.

  1. Note the current public IP

    Run curl https://api.ipify.org or open an IP check page and write the address down.

  2. Power off the router and modem

    Unplug them, not just restart from the menu. If you have a separate modem, turn it off too.

  3. Wait

    Give it a few minutes. On many networks a longer pause, sometimes an hour or more, raises the chance that the lease expires and you get a new address.

  4. Power on and check again

    Compare the new address with the old one. If it did not change, your plan may have a static IP or a sticky lease.

Method 2. Switch to another network or mobile data

#

The simplest way to get a different public IP is to connect through a different network: mobile data, a hotspot from your phone, another Wi-Fi network. Each network has its own provider and address.

On a phone, toggling airplane mode for a few seconds usually gets you a new address. Mobile carriers use carrier-grade NAT (CGNAT): many subscribers share each public IP, and reconnecting typically assigns you a different one from the pool. This is also why mobile proxies can change IP on demand.

Method 3. Renew the local IP (DHCP) on your device

#

Renewing the DHCP lease changes your private IP, not the public one. It is useful when you have a local address conflict or a network problem, and it is what many guides mean by "change your IP" on Windows.

Windows (Command Prompt as administrator)
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Linux (NetworkManager)
# show connections
nmcli connection show

# reconnect a connection to get a fresh lease
nmcli connection down "Wired connection 1" && nmcli connection up "Wired connection 1"

On macOS, open System Settings, Network, select your connection, click Details, open the TCP/IP tab and press Renew DHCP Lease. On iPhone, open Settings, Wi-Fi, tap the info icon next to the network and choose Renew Lease. On Android, the simplest option is to forget the network and reconnect.

Method 4. Use a VPN

#

A VPN routes all traffic from your device through a VPN server, so every app gets the server's IP. Install the client, choose a location, connect, then check your IP. This is the easiest method when you want the whole device to appear from one location, for example on public Wi-Fi.

The limit is that a VPN gives the device one IP at a time. If you need several browser profiles or scripts to use different addresses at once, a VPN cannot do it. The full comparison is in proxy vs VPN.

Method 5. Use a proxy for a specific app or profile

#

A proxy changes the IP only for the application that uses it. That makes it the right tool when you need control: one IP per browser profile, a fixed IP in a specific country, or a new IP for every request in a scraper. You get the proxy details as host, port, login and password, and enter them in the app or browser.

In a browser

Chrome and Edge use the system proxy settings: on Windows open Settings, Network and internet, Proxy, and enter the address and port under Manual proxy setup. Firefox has its own settings: Settings, General, Network Settings, Manual proxy configuration, and a checkbox to send DNS through a SOCKS5 proxy. For multiple profiles with different IPs, an antidetect browser is more convenient: see the antidetect browser proxy setup.

In the command line and scripts

curl and Python
# curl through an HTTP proxy
curl -x http://login:[email protected]:8000 https://api.ipify.org

# Python requests
import requests
proxy = 'http://login:[email protected]:8000'
print(requests.get('https://api.ipify.org', proxies={'http': proxy, 'https': proxy}, timeout=15).text)

Not sure whether you need a fixed or changing address? Read rotating vs static proxies.

Methods 6 and 7. Ask your provider or use Tor

#

Ask your internet provider. If you have a static IP, or your dynamic IP never changes, support can usually assign a new address. Some providers charge for static IPs and changes. This is the only way to change a static public IP on your own connection.

Tor Browser sends traffic through several volunteer relays, and the site sees the exit relay's IP. It is free and focused on privacy, but slow, and the list of exit relays is public, so many sites show CAPTCHAs or limit features for Tor traffic. It is not suitable for account work or automation.

Which method to choose

#
MethodChanges public IPScopeChoose countryBest for
Router restartSometimesWhole networkNoA quick new address at home
Mobile data or airplane modeUsuallyOne deviceNoOn the go, quick refresh
DHCP renewNo, private IP onlyOne deviceNoLocal network issues
VPNYesWhole deviceYesPublic Wi-Fi, one location
ProxyYesPer app or profileYesAccounts, scraping, geo testing
Ask the ISPYesWhole networkNoStatic IP plans
Tor BrowserYesTor Browser onlyLimitedAnonymous reading
Only proxies let different apps on the same machine use different public IPs at the same time.

How to check that your IP really changed

#
  1. Check the public IP

    Run curl https://api.ipify.org or open an IP lookup page in the same browser or profile and compare with the address you noted.

  2. Check the location

    Look the new IP up in two or three geolocation services. They use different databases, so small disagreements on the city are normal.

  3. Check for leaks in the browser

    Open a WebRTC and DNS leak test. Your real IP must not appear, and DNS resolvers should not belong to your home provider.

  4. Match timezone and language

    A US IP with a browser set to another timezone is inconsistent. Antidetect browsers can set these from the proxy IP.

The full procedure, including speed and anonymity checks, is in how to test a proxy. If you got proxies as a list, paste it into the free proxy checker first: it validates and converts formats such as ip:port:login:password and socks5:// URLs.

Frequently asked questions

Does restarting my router change my IP address?

Only if your provider uses dynamic addressing, and not always on the first restart, because DHCP leases can keep the same address. Turn the router off for longer, or ask the provider if the IP never changes.

Does ipconfig /renew change my public IP?

No. It renews the private address your router gives your computer. Websites see the public IP of your router, which only your provider, a VPN or a proxy can change.

How do I change my IP address to another country?

Use a VPN server or a proxy located in that country. A proxy lets you choose the country per app or browser profile and keep different profiles in different countries at the same time.

Is it legal to change your IP address?

Using a VPN or proxy to change your IP is legal in most countries and is widely used for privacy, security and testing. What you do through the new IP is still subject to the law and to each website's terms.

TrueSocks editorial team

Proxy guides and setup notes

Written by the people behind the TrueSocks catalog and support desk. Found a mistake or an outdated step? Let us know in Telegram and we will fix it.

Now boarding

Proxies for this task

Starting price per unit for the base term. Countries and volume discounts are listed on each product page.

  • #change ip address
  • #public ip
  • #dhcp
  • #vpn
  • #proxy setup

Proxies are provided for lawful use only. Spam, fraud and hacking are prohibited; follow the rules of the platforms you work with. Terms of service

All articles