Why you might want to change your IP address

Your IP address is how your device identifies itself on your network and the internet. Changing it is useful when you want to reset your connection, hide your location from websites, test network configurations, or troubleshoot connection problems. Most people change their IP address by restarting their router or adjusting their device settings — not by contacting their internet provider.

There are two types of IP addresses you might change: your local IP address (the one your device uses on your home network) and your public IP address (the one websites see when you visit them). The method depends on which one you want to change and what device you're using.

Key Takeaways

  • Restarting your router is the fastest way to change your public IP address, and it works on any device without additional steps.
  • On Windows, Mac, and Linux, you can manually set a static local IP address through network settings, which is useful for devices that need a consistent address on your home network.
  • DHCP (Dynamic Host Configuration Protocol) automatically assigns your local IP address when you connect to a network, so disabling it lets you set a fixed address instead.
  • Your internet provider assigns your public IP address, and restarting your modem or router forces it to request a new one from the provider.
  • VPNs change the IP address websites see, but they do not change your actual IP address — they route your traffic through another server.

Restarting your router to change your public IP address

The simplest way to change the IP address that websites see is to restart your router. Power it off completely, wait 30 seconds, then power it back on. Your internet provider will assign your modem a new public IP address during the restart process. This method works on any device — phone, laptop, tablet — without any configuration needed.

If restarting does not change your IP address, your internet provider may have assigned you a static public IP address, which does not change on restart. Contact your provider to ask whether your account uses a static or dynamic IP. If it is static and you need a different one, you will need to request it from them directly, though most residential accounts use dynamic addresses that change periodically on their own.

Setting a static local IP address on Windows

A static local IP address stays the same every time your device connects to your home network. This is useful for devices like printers, security cameras, or servers that other devices need to find at a consistent address. On Windows, open Settings, go to Network & Internet, then select your connection type (Ethernet or Wi-Fi). Click on your network name, then scroll down and select Edit under IP settings.

Choose Manual, then turn on IPv4. Enter your desired IP address (usually something like 192.168.1.100), your subnet mask (usually 255.255.255.0), and your gateway address (usually 192.168.1.1 — check your router's label or manual). Save the settings. Your device will now use that IP address whenever it connects to your network, instead of receiving a new one from DHCP each time.

Setting a static local IP address on Mac

On Mac, open System Settings and navigate to Network. Select your connection (Ethernet or Wi-Fi) from the list on the left, then click Details. Go to the TCP/IP tab. In the Configure IPv4 dropdown, select Manual instead of Using DHCP. Enter your desired IP address, subnet mask (255.255.255.0), and router address (usually 192.168.1.1).

Click OK to save. Your Mac will now keep the same local IP address on your network. If you ever need to switch back to automatic assignment, return to the same settings and select Using DHCP from the Configure IPv4 dropdown.

Setting a static local IP address on Linux

The process on Linux depends on your distribution and network manager. On Ubuntu with GNOME, open Settings, go to Network, and click the gear icon next to your connection. Switch the IPv4 toggle to Manual, then enter your IP address, subnet mask, and gateway. Save and reconnect to explore the change.

If you use a different distribution or prefer the command line, you can edit your network configuration file directly. On systems using netplan (Ubuntu 18.04 and later), edit /etc/netplan/01-netcfg.yaml and add your static IP configuration, then run sudo netplan explore. On older systems using /etc/network/interfaces, add your static IP details to that file and restart networking. Consult your distribution's documentation if you are unsure which method applies to your system.

Understanding DHCP and why it matters

DHCP is the system that automatically assigns IP addresses to devices on your network. When you connect a device to Wi-Fi or plug in an Ethernet cable, DHCP gives it an available address from a pool your router manages. This happens invisibly — you do not have to do anything. Most home networks use DHCP because it requires no manual setup and prevents address conflicts.

When you set a static IP address, you are telling your device to ignore DHCP and use the address you specified instead. This is why you need to choose an address outside the range your router assigns automatically. If you set a static IP in the range DHCP uses, your router might assign the same address to another device, causing a conflict. Check your router's settings to see what range DHCP uses, then pick a static address outside that range.

Using a VPN to change your visible IP address

A VPN (Virtual Private Network) routes your internet traffic through a server in another location, so websites see the VPN server's IP address instead of yours. This does not change your actual IP address — your device still has the same local and public IP. Instead, a VPN masks your IP from the websites you visit. Popular VPN services include ExpressVPN, NordVPN, and ProtonVPN, though many charge monthly fees.

VPNs are useful if you want to appear to be in a different location or hide your browsing from your internet provider. However, they do not make you anonymous — the VPN provider can see your traffic, and your real IP is still visible to your router and local network. If you only want to change your local IP on your home network, setting a static address is simpler and does not require additional software.

Troubleshooting when your IP address will not change

If you set a static IP address but your device keeps reverting to a different one, check whether DHCP is still enabled. On Windows, Mac, and Linux, DHCP overrides manual settings if both are active. Return to network settings and confirm that DHCP is turned off before explore your static address. Also verify that your static IP is not in the range your router assigns via DHCP — if it is, your router may reassign it.

If restarting your router does not change your public IP address, your internet provider may have assigned you a static public IP, or your modem may not be restarting properly. Try unplugging the modem for a full minute, then plugging it back in and waiting for all lights to stabilize. If the IP still does not change after several restarts, contact your internet provider to ask whether your account uses a static address.

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 and from your device. If you use a VPN, you may notice slower speeds because your traffic is being routed through another server, but that is a side effect of the VPN itself, not the IP address change.

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

Not easily. Your internet provider controls your public IP address and assigns it when your modem connects. Restarting the modem or router is the standard way to request a new one. Some providers allow you to change it through your account settings online, but most residential accounts do not have this option.

What is the difference between a static and dynamic IP address?

A dynamic IP address changes periodically or when you restart your device — DHCP assigns a new one each time. A static IP address stays the same until you manually change it. Home networks typically use dynamic local IPs and dynamic public IPs, but you can set a static local IP on your device if you need a consistent address on your network.

Do I need to change my IP address for security?

Changing your local IP address does not improve security — your local network is already isolated from the internet. Changing your public IP offers minimal security benefit unless you are trying to evade tracking or hide your location. For actual security, focus on strong passwords, keeping software updated, and using a firewall, which your router already provides.

Will changing my IP address disconnect me from the internet?

No. Restarting your router will briefly disconnect you (usually for a minute or two), but you will reconnect automatically once it finishes restarting. Setting a static local IP on your device will not disconnect you — the change takes effect on your next connection or when ready if you are already connected.