What changing your IP address means and why you might do it
Your IP address is the number your device uses to talk to other computers on the internet — like a mailing address for data. Changing it means getting a new number assigned to your device. Most people never need to do this, but there are real reasons you might: your internet service provider assigned you a bad one that's blocked by a website, you want to reset your connection after network trouble, or you're testing how your home network handles different configurations.
The method depends on whether you want to change your public IP (the one the outside internet sees) or your local IP (the one inside your home network). Public IP changes happen at your router or through your ISP. Local IP changes happen on individual devices. This guide covers both, starting with the easier local changes.
Key Takeaways
- Your local IP (the address inside your home network) changes through your device's network settings, and the steps differ between Windows, Mac, and Linux.
- Your public IP (the one websites see) changes by restarting your modem, or by contacting your ISP if you need a permanent change.
- Most IP address problems resolve by restarting your modem and router, which is faster than manually changing anything.
- If a website blocks your IP, changing it may not help — the block usually targets your entire ISP's range, not just your individual address.
- Manual IP changes can break your internet connection if you pick an address already in use or one outside your network's range.
Changing your local IP on Windows
Open Settings, then go to Network & Internet > Wi-Fi (or Ethernet if you're wired). Click the network you're connected to, then scroll down and select "Edit" next to IP assignment. Choose "Manual" and toggle IPv4 on. You'll see fields for IP address, Subnet mask, and Default gateway — these three numbers work together to define your device's place on your network.
Your router's settings page tells you what numbers to use. Open a browser, type 192.168.1.1 or 192.168.0.1 (check your router's label if neither works), and log in with the admin password. Look for DHCP settings or a device list — this shows you what IP addresses are already in use and what range is safe. Pick a number in that range that isn't taken, enter it in Windows, and click Save. If you can't reach the internet afterward, go back and check that the subnet mask and default gateway match what your router uses.
Changing your local IP on Mac
Click the Apple menu, go to System Settings > Network, then select your connection (Wi-Fi or Ethernet). Click Details, then the TCP/IP tab. Change "Configure IPv4" from Automatic to Manual. You'll see the same three fields as Windows: IP address, Subnet mask, and Default gateway.
Use the same process as Windows — check your router's settings page to see what addresses are available and what range is safe. Enter a new IP address in that range, make sure the subnet mask and gateway match your router's, and click OK. If the connection drops, go back to Automatic and try again with a different address or check that you copied the gateway correctly.
Changing your local IP on Linux
The steps depend on your distribution and whether you use a graphical interface or the command line. In Ubuntu with GNOME, click the network icon in the top right, select your connection, click the gear icon, go to IPv4, and change from Automatic to Manual. Enter your IP address, netmask, and gateway the same way as Windows and Mac.
If you use the command line, edit your network configuration file — usually /etc/netplan/ on Ubuntu or /etc/sysconfig/network-scripts/ on Red Hat systems. The exact syntax varies by distribution. If you're not comfortable editing config files, use the graphical method or check your distribution's documentation for the correct file path and format. After any change, restart networking with sudo systemctl restart networking or reboot the machine.
Changing your public IP through your modem and router
Your public IP — the address the outside internet sees — comes from your ISP and lives on your modem, not on individual devices. The fastest way to change it is to restart your modem. Unplug it for 30 seconds, plug it back in, and wait two minutes for it to fully boot. Your ISP will assign a new public IP during that restart.
If restarting doesn't change it, or if you need a permanent change, contact your ISP directly. Some ISPs let you request a new address through your account page; others require a phone call. A few charge a monthly fee for a static IP (one that doesn't change), which is the opposite of what most people want. If a website has blocked your IP, ask the ISP whether they can assign you one outside the blocked range — but understand that many blocks target entire ISP ranges, so a new address may not help.
When a manual IP change breaks your connection
If you change your local IP and lose internet access, the problem is usually one of three things: the address you picked is already in use by another device, the subnet mask doesn't match your router's, or the default gateway is wrong. The fastest fix is to go back to automatic IP assignment — on Windows and Mac, this is in the same settings menu; on Linux, change back to Automatic in the IPv4 settings or restore the original config file.
Once you're back online, check your router's settings page again and verify the subnet mask and gateway before trying a different address. If you're not sure what numbers to use, leaving your device on automatic is the safest choice — your router will assign an address that works.
Why restarting your modem solves most IP problems
Before you manually change anything, restart your modem and router. Unplug both for 30 seconds, plug in the modem first, wait for it to fully boot (usually two minutes), then plug in the router. This fixes most connection problems because it forces your ISP to reassign your public IP, clears temporary network glitches, and lets your devices request fresh local IPs from your router.
This single step solves problems like websites blocking your IP, your connection dropping randomly, or your router forgetting devices. It takes five minutes and works more often than any manual change. Only move to manual IP changes if restarting doesn't fix the problem and you understand exactly what address you're changing and why.
Frequently Asked Questions
Will changing my IP address make websites unblock me?
Not usually. Most blocks target your entire ISP's range of addresses, not your individual IP. Changing to a different address from the same ISP won't help. If you need to access a blocked site, contact the website's support to ask why you're blocked, or use a different network (like a phone's hotspot from a different ISP).
Can I pick any IP address I want?
No. Your address must be in the range your router uses (usually 192.168.1.0 to 192.168.1.255 or 192.168.0.0 to 192.168.0.255), and it can't already be assigned to another device. Check your router's DHCP settings to see what range is available and what addresses are in use.
What's the difference between a static and dynamic IP?
A dynamic IP changes each time you restart your modem — this is what most home internet users have. A static IP stays the same and usually costs extra from your ISP. You only need static if you're running a server that needs a permanent address.
Do I need to change my IP to improve security?
No. Changing your IP doesn't make your network more find. Security comes from your router's firewall, strong passwords, and keeping software updated. If you're concerned about privacy, a VPN is more effective than changing your IP.
Why does my device keep getting a different local IP?
Your router assigns local IPs automatically through DHCP, and it can reassign them when devices reconnect or restart. If you need a device to keep the same local IP, set it to Manual in your network settings and pick an address outside your router's DHCP range.