What changing your IP address actually does

Your IP address is the number your device uses to talk to the internet — like a mailing address for data. Changing it means your device gets a new number, which can help if a website is blocking your old address, if you want a fresh connection to a service, or if you're troubleshooting a network problem. The method depends on whether you want a temporary change (which happens automatically when you restart your router) or a permanent one (which requires manual setup).

Most people don't need to change their IP address. Your internet provider assigns you one automatically, and it changes on its own every few months or when you restart your modem. But if you're locked out of a service, dealing with a connection issue, or setting up a specific network configuration, you have several straightforward options.

Key Takeaways

  • Restarting your modem and router is the fastest way to get a new IP address from your internet provider, and it works for most situations.
  • You can manually set a static IP address on Windows, Mac, or mobile devices if you need one that doesn't change, though this requires knowing your router's gateway and DNS settings.
  • Unplugging your modem for 30 seconds before restarting it increases the chance your provider will assign you a different address.
  • Changing your IP address on your device does not hide your activity from your internet provider — only a VPN does that.
  • Mobile devices get a new IP address automatically when you switch from Wi-Fi to cellular data or connect to a different network.

The fastest method: restart your modem and router

Restarting your modem and router is the simplest way to get a new IP address. Your modem is the box that connects to your internet provider's line; your router is the separate device that broadcasts Wi-Fi. When you restart them, your modem disconnects from your provider's network and reconnects with a new address.

Step 1: Unplug the power cable from your modem. Wait 30 seconds — this matters, because your modem needs time to fully discharge.

Step 2: Plug the modem back in and wait for all the lights to stop blinking and settle into a steady pattern. This usually takes 2 to 3 minutes.

Step 3: Unplug your router's power cable, wait 30 seconds, and plug it back in. Wait another 2 to 3 minutes for it to fully restart.

Step 4: Once both devices are fully restarted, open a browser and visit whatismyipaddress.com or ipchicken.com to see your new IP address. If it's the same as before, wait another 10 minutes and check again — sometimes providers take a few minutes to assign a new one.

This method works because your internet provider tracks which modem is connected and assigns addresses based on that connection. A full restart forces a reconnection, which often triggers a new address assignment. It doesn't always work — some providers hold the same address for longer — but it's free and takes less than 10 minutes.

Setting a static IP address on Windows

A static IP address is one you manually set that stays the same until you change it again. This is useful if you're running a home server, setting up port forwarding, or need consistent access to a device on your network. You'll need to know three pieces of information: your router's IP address (usually printed on the router itself or in its manual), your router's gateway, and your DNS servers.

Step 1: Right-click the Windows Start button and select Settings.

Step 2: Go to Network & Internet, then Wi-Fi (or Ethernet if you're using a wired connection).

Step 3: Click Manage known networks, then select your network and click Properties.

Step 4: Scroll down to IP settings and click Edit.

Step 5: Change the dropdown from Automatic (DHCP) to Manual.

Step 6: Turn on the toggle for IPv4. You'll see fields for IP address, Subnet mask, Gateway, and Preferred DNS.

Step 7: Enter an IP address in the same range as your router — for example, if your router is 192.168.1.1, use something like 192.168.1.50. Use 255.255.255.0 for the subnet mask, enter your router's IP as the gateway, and use 8.8.8.8 and 8.8.4.4 for DNS (Google's public DNS servers).

Step 8: Click Save. Your device now has a static IP address that won't change when you restart.

Setting a static IP address on Mac

On Mac, static IP addresses are set through System Settings. The process is similar to Windows but uses different menu names.

Step 1: Click the Apple menu and select System Settings.

Step 2: Click Wi-Fi in the sidebar (or Network if using Ethernet).

Step 3: Click Details next to your network name.

Step 4: Click the TCP/IP tab.

Step 5: Change the Configure IPv4 dropdown from Automatic (DHCP) to Manual.

Step 6: Enter an IP address in your router's range (for example, 192.168.1.50 if your router is 192.168.1.1), set the subnet mask to 255.255.255.0, enter your router's IP as the gateway, and use 8.8.8.8 for DNS.

Step 7: Click OK, then close the window. Your Mac now uses a static IP address.

Changing your IP on mobile devices

On iPhones and Android phones, you don't manually change your IP address the way you do on a computer. Instead, your phone gets a new one automatically when you switch networks or restart your Wi-Fi connection.

To get a new IP on Wi-Fi: Go to your Wi-Fi settings, tap the network you're connected to, and select Forget. Then reconnect to the same network. Your phone will request a new IP address from the router.

To get a new IP on cellular: Turn airplane mode on for 10 seconds, then turn it off. Your phone will reconnect to your carrier's network with a new address.

If you need a static IP on mobile, the process is more limited. Most phones don't offer a built-in way to set one. If you absolutely need this, you can configure it through your router by setting up DHCP reservation — your router assigns the same address to your phone every time it connects — but this requires access to your router's admin panel and is rarely necessary for typical use.

When restarting doesn't give you a new IP

Some internet providers hold the same IP address for weeks or months, even after a restart. This happens because they track your modem by its MAC address (a unique identifier), not just by connection time. If you need a different address and restarting didn't work, you have a few options.

Contact your internet provider directly. Explain that you need a new IP address and ask if they can manually assign one. Some providers will do this without charge; others may require a service call. Be specific about why you need it — "I'm locked out of a service" is clearer than "I just want a new one."

Wait longer. Providers typically reassign addresses on a schedule — often every 30 to 90 days. If you're not in a rush, your address will change on its own.

Use a VPN if you need anonymity. If your goal is to hide your activity or appear to be in a different location, changing your IP address won't help — your provider still sees everything. A VPN (virtual private network) masks your real IP and encrypts your traffic, but that's a different tool for a different purpose.

Common mistakes to avoid

The biggest mistake is confusing your device's local IP address with your public IP address. Your local IP (like 192.168.1.50) is what your device uses on your home network. Your public IP is what websites see when you connect to the internet. When you change your device's local IP, your public IP might not change — you need to restart your modem for that. Check whatismyipaddress.com to see your public IP, not your router's settings.

Another common error is setting a static IP address that conflicts with your router's DHCP range. If your router is set to hand out addresses from 192.168.1.100 to 192.168.1.200, don't manually set your device to 192.168.1.150 — pick something outside that range, like 192.168.1.50. If you're unsure of your router's DHCP range, check the router's admin panel (usually accessible at 192.168.1.1 in your browser) or your router's manual.

Finally, don't assume changing your IP makes you anonymous online. Your internet provider still knows it's you, and so does any website you log into. An IP address change is useful for troubleshooting or getting around a block, but it's not a privacy tool.

Frequently Asked Questions

Will changing my IP address stop someone from tracking me?

No. Your internet provider knows which IP address belongs to you, and websites that have your login information can track you regardless of your IP. If you need privacy, use a VPN. If you're trying to get around a temporary block from a website, changing your IP can help, but it won't hide your identity from your provider or from any service you log into.

How long does it take to get a new IP after restarting my modem?

Usually 2 to 10 minutes. Your modem reconnects to your provider's network within a few minutes, and the provider assigns a new address almost immediately. If you check your IP right after restarting and it's the same, wait 10 minutes and check again — sometimes the change takes a few minutes to propagate.

Can I set a static IP on my phone?

Not directly through your phone's settings on most devices. iPhones and Android phones don't have a built-in option to manually set a static IP. However, you can configure your router to always assign the same IP to your phone using DHCP reservation, which accomplishes the same thing. Check your router's admin panel for this option.

What's the difference between my local IP and my public IP?

Your local IP (like 192.168.1.50) is what your device uses on your home network to talk to your router. Your public IP is what the internet sees — it's assigned by your internet provider and is the address websites record when you visit them. When you change your device's local IP, your public IP usually doesn't change. You need to restart your modem to get a new public IP.

Do I need to restart my modem and router, or just one of them?

Restart both. Your modem connects to your internet provider and gets your public IP address. Your router connects to your modem and broadcasts Wi-Fi. Restarting only your router won't give you a new public IP — you must restart the modem. Restarting both ensures a clean reconnection and gives you the best chance of getting a new address.