What changing your IP address actually does
Your IP address is a number that identifies your device on the internet — like a mailing address for data. When you change it, you get a new number, which can help if a website is blocking your old address, if you want a fresh connection after network trouble, or if you're testing how your devices behave on different networks. Most people don't need to change their IP address often, but the process is straightforward once you know which type you have.
There are two kinds: a public IP address (the one your internet provider assigns to your whole home network) and a private IP address (the one your router assigns to each device inside your home). Changing your private IP is something you do on one device. Changing your public IP usually means restarting your modem, which affects everything connected to your network at once.
Key Takeaways
- Restarting your modem for 30 seconds will change your public IP address in most cases, and this affects all devices on your network.
- Changing your private IP address on a single device requires going into network settings and either manually entering a new address or releasing and renewing your current one.
- On Windows, you access IP settings through Settings > Network & Internet > Advanced Network Options; on Mac, through System Settings > Network.
- Mobile devices (iPhone and Android) usually get a new private IP automatically when you reconnect to Wi-Fi, but you can force this by forgetting the network and reconnecting.
- If you manually set an IP address, write down the settings first so you can restore them if something breaks.
Changing your public IP by restarting your modem
Your modem is the device that connects directly to your internet provider's line — it's usually a box with lights on the front, separate from your router (though some devices combine both). To change your public IP address, unplug the power cable from the back of the modem, wait 30 seconds, then plug it back in. The lights will blink as it restarts. Wait another two minutes for it to fully come back online.
When the modem restarts, your internet provider assigns it a new public IP address. This new address then applies to everything connected to your network — all your computers, phones, and tablets. Most internet providers assign addresses from a pool, so you'll usually get a different one each time. If you need to know your new public IP after restarting, you can visit a site like whatismyipaddress.com to see it.
This method works for most home internet setups. However, some providers use a system where your modem keeps the same public IP for weeks or months. If you restart and the address doesn't change, that's normal — it just means your provider hasn't rotated it yet. Restarting again won't force a new one.
Changing your private IP on Windows
Open Settings and go to Network & Internet. On the left side, click Advanced Network Options, then scroll down and click More Network Adapter Options. This opens a separate window showing all your network connections. Right-click the connection you use (usually called "Ethernet" if you're plugged in, or your Wi-Fi network name if you're wireless) and select Properties.
In the Properties window, find Internet Protocol Version 4 (TCP/IPv4) in the list, click it once to highlight it, then click Properties below. You'll see two options: "Obtain an IP address automatically" and "Use the following IP address". If the first option is selected, your device is getting its IP from your router and will change it automatically when you reconnect. To force a new one right now, click the first option (if it's not already selected), click OK, then come back and do the same thing — this refreshes the connection.
If you want to manually set a specific IP address, click "Use the following IP address" and enter a number. For a home network, use something like 192.168.1.100 (the exact range depends on your router, but this works for most). Before you do this, write down what was there before — you'll need it if something stops working. After entering the address, click OK twice to explore the change.
Changing your private IP on Mac
Click the Apple menu and go to System Settings (or System Preferences on older versions). Click Network on the left side. Select the connection you want to change — either Wi-Fi or Ethernet — then click Advanced in the bottom right.
Click the TCP/IP tab at the top. You'll see a dropdown that says "Configure IPv4" with options like "Using DHCP" or "Manually". If it says "Using DHCP", your Mac is getting its IP automatically from your router. To force a new one, click the dropdown, select "Using DHCP", click Renew DHCP Lease, then click OK. This tells your router to assign you a fresh address.
To manually set an IP address, click the "Configure IPv4" dropdown and select "Manually". Enter an IP address (again, 192.168.1.100 works for most home networks), then fill in the Subnet Mask (usually 255.255.255.0) and Router fields. Write down the old settings before you change them. Click OK when done.
Changing your private IP on iPhone and Android
On both iPhone and Android, your device gets a new private IP address automatically whenever you reconnect to a Wi-Fi network. You don't need to do anything — it happens in the background. However, if you want to force a new address right now, the fastest way is to forget the network and reconnect.
On iPhone, go to Settings > Wi-Fi, tap the network you're connected to, then tap Forget This Network. Wait a few seconds, then tap the network name again and enter the password. Your phone will get a fresh IP address from your router. On Android, go to Settings > Network & Internet > Wi-Fi, long-press the network name, tap Forget, then reconnect the same way.
If you're on cellular data instead of Wi-Fi, your carrier assigns your IP address, and you can't change it yourself. Turning airplane mode on for 10 seconds, then off, sometimes triggers a new address, but it's not may provide. For most situations, this isn't necessary — your carrier rotates addresses regularly on its own.
When to manually set an IP address versus letting your router assign one
Most of the time, you should let your router assign addresses automatically — this is called DHCP, and it prevents conflicts where two devices accidentally get the same number. Manually setting an address is only useful in specific situations: if you're setting up a device that needs to stay at the same address (like a printer or security camera), if you're testing network behavior, or if you're troubleshooting a problem a technician told you to try.
If you do manually set an address, pick a number in the range your router uses. Most home routers use 192.168.1.x or 192.168.0.x (where x is a number from 2 to 254). Check your router's manual or log into it to see what range it uses. Avoid numbers below 10 or above 254, and avoid .1 (that's usually the router itself). After you manually set an address, test that everything still works — websites load, you can reach other devices on your network. If something breaks, go back and select "Obtain an IP address automatically" to restore normal operation.
Troubleshooting when your IP won't change
If you've restarted your modem and your public IP is still the same, wait a few hours and try again. Some internet providers hold onto the same address for a set period. If you've manually set a private IP address and devices can't reach you, go back to automatic assignment — you may have picked a number that conflicts with something else on your network.
If you're on a corporate or school network, you may not be able to change your IP address at all — the network administrator controls it. The same applies if you're using a VPN (a tool that routes your traffic through another server). In those cases, changing your device's IP won't change the address websites see, because the VPN or network is masking it.
If you've forgotten what your original IP settings were and need to restore them, the safest option is to select "Obtain an IP address automatically" on Windows or "Using DHCP" on Mac. This puts your device back to factory defaults and your router will assign you a working address. You won't lose any files or settings — it only affects how your device connects to the network.
Frequently Asked Questions
Will changing my IP address hide me from websites?
Changing your private IP address (the one inside your home network) won't hide you from websites at all — they see your public IP, which is assigned by your internet provider. Restarting your modem changes your public IP, but websites can still track you through cookies and other methods. If you want real privacy from websites, you need a VPN or a privacy-focused browser, not an IP change.
Can I change my IP address to a different country?
No, not by changing your device's IP address. Your internet provider assigns your public IP based on your location, and you can't pick a different country. If you want an IP address that appears to be in another country, you need a VPN service, which routes your traffic through a server in that location. That's a separate tool from what we've covered here.
Do I need to restart my computer after changing my IP address?
No. On Windows and Mac, the change takes effect when ready after you click OK in the network settings. You don't need to restart. However, some programs (like web browsers) may need to be closed and reopened to see the new connection. If something isn't working after you change your IP, try closing and reopening the program first.
What if two devices on my network get the same IP address?
If you manually set an IP address and another device on your network already has that number, both devices will have connection problems — websites may load slowly or not at all, and the devices may not see each other. This is called an IP conflict. To fix it, go back to automatic assignment on one of the devices, or manually pick a different number that isn't in use.
How often should I change my IP address for security?
You don't need to change your IP address regularly for security. Changing it occasionally (like restarting your modem once a month) is fine, but it's not a security requirement. Real security comes from keeping your router's password strong, updating your devices, and using a firewall — not from rotating your IP address.