How to change your IP address depends on whether you want a temporary change or a permanent one, and what device you're using

The fastest way to change your IP address is to restart your modem and router — this works for most home internet users and takes about five minutes. If you need a more permanent change, you can configure your device to request a new address from your internet service provider, or set a static IP manually. On Windows, Mac, and Linux, the steps differ slightly, but the principle is the same: you're either asking your router for a fresh address or telling your device to use a specific one you've chosen.

Before you start, understand what you're actually changing. Your public IP address is what websites see when you visit them — this is assigned by your internet service provider and tied to your modem. Your private IP address is what your device uses inside your home network — this is assigned by your router. Most people need to change their public IP, which the modem restart method handles. If you need to change your private IP for network troubleshooting, the process is different and happens on the device itself.

Key Takeaways

  • Restarting your modem and router gives you a new public IP address in about five minutes and works for most situations.
  • Windows, Mac, and Linux all have built-in settings to request a new private IP address from your router without restarting hardware.
  • Setting a static IP address locks your device to one specific address and requires you to enter the address manually in your network settings.
  • Your public IP address is assigned by your internet service provider; your private IP address is assigned by your router — they are not the same thing.
  • Changing your IP address does not hide your identity online or bypass restrictions — it only changes the address your device uses on the network.

Restart your modem and router for a new public IP address

This is the simplest method and works for anyone with a home internet connection. Unplug your modem (the device that connects to your internet service provider's line) and wait 30 seconds. Plug it back in and wait for all the lights to stop blinking and stabilize — this usually takes two to three minutes. Then unplug your router (the device that broadcasts your Wi-Fi) and wait 30 seconds before plugging it back in. Wait another two to three minutes for it to fully restart.

Once both devices are fully booted, your modem will have requested a new IP address from your internet service provider. You can check your new public IP address by visiting a site like whatismyipaddress.com in your web browser. The entire process takes about five to ten minutes and is safe to do at any time — you will simply lose internet for those few minutes while the devices restart.

This method works because most internet service providers assign IP addresses using DHCP (Dynamic Host Configuration Protocol), which means your modem gets a new address each time it connects. The address usually changes within minutes, though occasionally it may take up to 24 hours. If you need the change to happen faster, this is the most reliable approach.

Request a new private IP address on Windows

If you need to change the IP address your device uses inside your home network (not your public IP), you can ask your router for a fresh one. Open the Start menu and type "Command Prompt" — right-click it and select "Run as administrator." In the command prompt window, type ipconfig /release and press Enter. This tells your router you no longer want your current private IP address.

Wait a few seconds, then type ipconfig /renew and press Enter. Your router will assign you a new private IP address from its available pool. Type ipconfig and press Enter to see your new address listed under "IPv4 Address." The entire process takes less than a minute. If you see the same address after renewing, your router may have reassigned you the same one — this is normal and happens when few addresses are available.

Request a new private IP address on Mac

On Mac, open System Settings and click "Wi-Fi" in the sidebar. Click the "Details" button next to your connected network, then select the "TCP/IP" tab. Click the "Renew DHCP Lease" button — this asks your router for a new private IP address. The new address appears in the "IPv4 Address" field within a few seconds.

If you are connected by Ethernet instead of Wi-Fi, open System Settings, click "Network" in the sidebar, select "Ethernet" from the list, click "Details," choose the "TCP/IP" tab, and click "Renew DHCP Lease." The process is identical — you are simply telling your router to assign you a different address from its pool.

Request a new private IP address on Linux

On Linux, the method depends on your network manager. For most distributions using NetworkManager, open a terminal and type sudo nmcli con down [connection-name] and press Enter, replacing [connection-name] with the name of your Wi-Fi network or Ethernet connection. Then type sudo nmcli con up [connection-name] and press Enter. This disconnects and reconnects your network, requesting a fresh IP address from your router.

If you use a different network manager or prefer the command line, you can also type sudo dhclient -r to release your current address, then sudo dhclient to request a new one. Check your new address by typing ip addr and pressing Enter — look for the "inet" line under your network interface. The process takes less than a minute.

Set a static IP address if you need one that does not change

If you want your device to always use the same private IP address, you can set it manually instead of letting your router assign one. On Windows, open Settings, go to "Network & Internet," click "Wi-Fi" or "Ethernet," then click "Edit" next to your connection. Scroll down to "IP settings" and click "Edit." Change the dropdown from "Automatic (DHCP)" to "Manual," turn on the IPv4 toggle, and enter the IP address you want to use (usually something like 192.168.1.100), your subnet mask (usually 255.255.255.0), and your gateway (usually 192.168.1.1 — check your router's label or manual).

On Mac, open System Settings, click "Network," select your connection, click "Details," go to the "TCP/IP" tab, and change the "Configure IPv4" dropdown from "Automatic (DHCP)" to "Manual." Enter your desired IP address, subnet mask, and router address in the fields provided. On Linux, the process varies by distribution, but most graphical network managers have an option to switch from "Automatic (DHCP)" to "Manual" and then enter your static address.

Before setting a static IP, check what addresses your router uses. Log into your router's admin panel (usually by typing 192.168.1.1 in your browser and entering the password on the router's label) and look for the DHCP settings to see the range of addresses it assigns. Choose an address outside that range — for example, if your router assigns 192.168.1.100 through 192.168.1.254, use something like 192.168.1.50. This prevents conflicts where your router tries to assign the same address to another device.

Use a VPN if you want to hide your public IP address

Changing your IP address does not hide your identity or location online. Websites can still track you through cookies, browser fingerprinting, and other methods even if your IP address changes. If you want to hide your public IP address from websites you visit, you need a VPN (Virtual Private Network), which routes your traffic through a server in another location and shows websites that server's IP address instead of yours.

A VPN is a separate service you install on your device — changing your IP address through your modem or network settings does not provide this protection. VPNs cost money (usually $3 to $12 per month) and slow your connection slightly because your traffic travels through an extra server. They are useful if you want privacy from your internet service provider or websites, but they are not the same as changing your IP address.

Frequently Asked Questions

Will changing my IP address stop someone from tracking me online?

No. Websites track you through cookies, login accounts, and browser fingerprinting — not just your IP address. Changing your IP address only changes the address your device uses on the network. If you want to hide your IP from websites, you need a VPN. If you want to stop tracking, you need to clear cookies, use private browsing, or block tracking scripts.

Can I change my public IP address without restarting my modem?

Not reliably. Your internet service provider assigns your public IP address, and most will only give you a new one when your modem reconnects. Some providers let you request a new address through their customer portal, but this is rare. Restarting your modem is the standard method and works for nearly all providers.

What happens if I set a static IP address that conflicts with another device?

You will lose internet on one or both devices. The device with the static IP will not be able to communicate properly, and the other device may disconnect. If this happens, change your static IP to a different address outside your router's DHCP range, or switch back to automatic (DHCP) assignment.

Does my internet service provider know when I change my IP address?

Your internet service provider knows your public IP address at all times — that is how they route data to your modem. Changing your private IP address (the one inside your home network) is invisible to your internet service provider. Changing your public IP through a modem restart is visible to them, but it is a normal part of how DHCP works and they do not flag it.

How often should I change my IP address for security?

There is no security benefit to changing your IP address regularly. Your IP address is not a password or secret — it is how devices find each other on a network. Changing it does not improve security unless you are trying to disconnect from a specific attack or bypass a block. For general security, focus on strong passwords, two-factor authentication, and keeping your software updated instead.