What changing your IP address means and when you need to do it

Your IP address is the number your device uses to connect to the internet — think of it like a mailing address for data. Changing it means getting a new number assigned to your device. Most of the time your internet provider assigns you a new IP automatically when you restart your modem, but you can also change it manually through your device settings if you need a fresh address right away.

People change their IP address for a few practical reasons: to fix a connection problem, to reset network settings after a configuration mistake, or to get a different address from your provider's pool. This is different from hiding your IP with a VPN — that's a separate tool that routes your traffic through another server.

Key Takeaways

  • The fastest way to get a new IP is to restart your modem and wait 30 seconds to 2 minutes for your provider to assign a fresh one.
  • On Windows, you can manually change your IP through Settings > Network & Internet > WiFi or Ethernet, then choose "Edit" next to your connection.
  • On Mac, go to System Settings > Network, select your connection, click "Details", and change the IP in the TCP/IP tab.
  • On Linux, you can edit your network configuration file directly or use the terminal command nmcli to change your IP without restarting.
  • If you want your device to get a new IP automatically each time you connect, set it back to DHCP mode instead of using a static IP.

Restarting your modem to get a new IP from your provider

The simplest way to change your IP address is to power cycle your modem — the device your internet provider gave you that connects to the wall outlet. Unplug it from power, wait 30 seconds to 2 minutes, then plug it back in. Your modem will restart and contact your provider's server to request a new IP address.

This usually works because most home internet providers use DHCP, which means they assign addresses temporarily rather than permanently. When your modem reconnects, the provider hands out a different address from their available pool. The whole process takes about 5 to 10 minutes from the moment you plug the modem back in.

If you have a combined modem and router in one box, restart that single device. If you have them separate, restart only the modem — the router will reconnect to it automatically. You do not need to restart your computer or phone.

Changing your IP manually on Windows

If you need to set a specific IP address on Windows instead of waiting for your provider to assign one, open Settings and navigate to Network & Internet. On the left side, click WiFi if you use wireless, or Ethernet if you use a cable. Find your current network in the list and click it.

Click the Edit button next to your network name. Scroll down to the IP settings section and change the dropdown from Automatic (DHCP) to Manual. Toggle on the IPv4 switch if it is not already on. You will now see fields for IP address, Subnet mask, and Gateway.

Enter your desired IP address in the first field — for a home network, this is usually something like 192.168.1.100 or 192.168.0.100. The subnet mask is almost always 255.255.255.0. The gateway is usually 192.168.1.1 or 192.168.0.1 (the address of your router). Click Save when you are done. Your connection will drop briefly and reconnect with the new IP.

Changing your IP manually on Mac

On Mac, open System Settings and click Network in the sidebar. Select the connection you want to change — either WiFi or Ethernet — then click the Details button on the right side of the window.

Click the TCP/IP tab at the top. You will see a dropdown that currently says Automatic (DHCP). Change this to Manual. Three fields will appear: IPv4 Address, Subnet Mask, and Router. Fill in the same information you would use on Windows — an IP address like 192.168.1.100, a subnet mask of 255.255.255.0, and your router's address like 192.168.1.1.

Click OK to save your changes. Your Mac will disconnect and reconnect with the new IP address. If you ever want to go back to automatic assignment, return to this same screen and change the dropdown back to Automatic (DHCP).

Changing your IP on Linux using the terminal

Linux users can change their IP address through the terminal using the nmcli command, which works on most modern distributions. Open a terminal and type the following command to see your current connections:

nmcli connection show

Find the name of the connection you want to change — it will be something like "Wired connection 1" or your WiFi network name. To set a static IP, use this command, replacing CONNECTION_NAME with your actual connection name and 192.168.1.100 with your desired IP:

nmcli connection modify CONNECTION_NAME ipv4.addresses 192.168.1.100/24 ipv4.gateway 192.168.1.1 ipv4.method manual

Then restart the connection with:

nmcli connection up CONNECTION_NAME

To return to automatic IP assignment, use nmcli connection modify CONNECTION_NAME ipv4.method auto followed by nmcli connection up CONNECTION_NAME. If you prefer a graphical interface, most Linux desktops also have a Network Manager application in the system settings where you can make these same changes by clicking through menus.

What to do if your new IP is not working

If you set a static IP and your internet stops working, the most common cause is a mismatch between your IP address and your router's settings. Make sure your IP is in the same range as your router — if your router is 192.168.1.1, your device IP should start with 192.168.1. Also check that you did not accidentally use an IP that is already assigned to another device on your network.

Another common problem is entering the wrong gateway address. Your gateway is almost always your router's IP address. If you are not sure what it is, restart your modem and router, then check your device's network settings to see what gateway it was assigned automatically — that is the correct one to use.

If you want to go back to automatic assignment and let your provider assign an IP again, return to your network settings, find the connection, and change the method back to DHCP or Automatic. This usually fixes connection problems immediately.

Understanding static IP versus automatic IP assignment

When you set a static IP manually, your device keeps that same address every time it connects. This is useful if you are running a server, setting up port forwarding, or need a device to have a predictable address for remote access. However, most home users should use automatic assignment (DHCP) because it is simpler and your provider handles everything.

Automatic assignment means your device asks your provider for an IP each time it connects, and the provider assigns one from their available pool. You might get a different address each time, or you might get the same one repeatedly — it depends on your provider's settings. The advantage is that you never have to worry about conflicts or entering the wrong information.

If you set a static IP and later want to switch back to automatic, go to the same network settings screen where you changed it, and select DHCP or Automatic from the dropdown. Your device will immediately request a new address from your provider.

Frequently Asked Questions

Will changing my IP address affect my internet speed?

No. Your IP address is just an identifier — changing it does not affect how fast data travels to your device. If your speed changes after you modify your IP, it is usually because you made a configuration error. Return your settings to automatic assignment and your speed should return to normal.

Can I choose any IP address I want?

For a home network, you should only use addresses in the private range: 192.168.0.0 to 192.168.255.255, 10.0.0.0 to 10.255.255.255, or 172.16.0.0 to 172.31.255.255. These are reserved for local networks and will not conflict with the internet. Do not use addresses outside these ranges unless you know exactly what you are doing.

Do I need to restart my computer after changing my IP?

No. Most operating systems apply the change immediately. Your connection may drop for a few seconds while your device reconnects with the new address, but a full restart is not necessary. If the change does not take effect after a minute, try restarting your network adapter or modem.

What is the difference between my local IP and my public IP?

Your local IP is the address your device uses inside your home network — the 192.168.x.x address you see in settings. Your public IP is the address your internet provider assigns to your modem, which the outside internet sees. Changing your local IP does not change your public IP. To change your public IP, restart your modem.

Will my devices lose connection if I change my IP?

If you change your device's own IP address, only that device will briefly lose connection and then reconnect. Other devices on your network will not be affected. If you restart your modem to get a new public IP, all devices will lose connection for a few minutes while the modem restarts and reconnects.