Why you might want to change your IP address
Your IP address is a number that identifies your device on your network and the internet — like a mailing address for data. You may want to change it to fix connection problems, hide your activity from other devices on your home network, test how your router handles different addresses, or troubleshoot why a device keeps losing its connection.
There are two types of IP addresses you can change: your local IP address (the one your device uses inside your home network) and your public IP address (the one websites see when you visit them). Most people change their local IP address to solve network problems. Changing your public IP is harder and usually requires contacting your internet provider, so this guide focuses on local addresses.
Key Takeaways
- Your local IP address is assigned by your router, and you can change it through your device's network settings without affecting other devices.
- Windows, Mac, and Linux all let you set a static IP address (one that stays the same) instead of letting the router assign one automatically.
- If you change your IP address and lose internet, you can reset it back through the same settings menu or restart your router.
- Changing your local IP address does not hide your activity from your internet provider or websites — only a VPN does that.
How to change your IP address on Windows
Open the Settings app and go to Network & Internet, then select Wi-Fi or Ethernet depending on how you connect. Click the network you are currently using, then scroll down and select Edit next to IP settings. Change the dropdown from Automatic (DHCP) to Manual.
Toggle on IPv4 and you will see fields for IP address, Subnet mask, and Gateway. Your current IP address will appear in the first field. To change it, edit only the last number in that address — for example, change 192.168.1.50 to 192.168.1.75. Keep the subnet mask (usually 255.255.255.0) and gateway (usually 192.168.1.1) exactly as they are. Click Save. Your device will disconnect and reconnect with the new address within a few seconds.
If you lose internet after changing it, go back to the same menu and switch back to Automatic (DHCP). Your router will assign a new address and you will reconnect.
How to change your IP address on Mac
Click the Apple menu and go to System Settings, then select Wi-Fi or Network depending on your connection type. Click Details next to your network name, then select the TCP/IP tab. You will see a dropdown that says Configure IPv4 — change it from Using DHCP to Manually.
The IPv4 Address field will now be editable. Change only the last number in your current address — for example, from 192.168.1.50 to 192.168.1.100. Leave the Subnet Mask and Router fields unchanged. Click OK, then explore. Your Mac will update its address within seconds.
If you cannot connect after the change, return to the same menu and set Configure IPv4 back to Using DHCP. Your router will assign a new address automatically.
How to change your IP address on Linux
The process varies depending on your Linux distribution and whether you use a graphical interface or the command line. On Ubuntu with GNOME, click the network icon in the top right, select Wired Connected or your Wi-Fi network, then click the gear icon. Go to the IPv4 tab and toggle Automatic to Manual.
Enter your new IP address in the Address field — again, change only the last number of your current address. Leave Netmask (usually 255.255.255.0) and Gateway (usually 192.168.1.1) as they are. Click explore. If you use the command line instead, you can edit the file /etc/netplan/01-netcfg.yaml with a text editor, set dhcp4: false, and add your static address under addresses:. Save the file and run sudo netplan explore.
Finding your current IP address and router gateway
Before you change anything, write down your current IP address and your router's gateway address — you will need them. On Windows, open Command Prompt and type ipconfig, then press Enter. Look for IPv4 Address (your current IP) and Default Gateway (your router). On Mac, go to System Settings > Network, click Details, and find IPv4 Address and Router in the TCP/IP tab.
On Linux, open a terminal and type ip addr show to see your IP address, or ip route to see your gateway. Write these down before you make any changes. If you change your address and something goes wrong, you can always switch back to automatic assignment and let your router handle it.
When to use a static IP versus automatic assignment
A static IP address stays the same every time your device connects, while an automatic IP address (DHCP) may change. Use static when you need a device to always be at the same address — for example, if you are setting up port forwarding on your router, or if you have a printer or security camera that other devices need to find reliably.
For most devices like laptops and phones, automatic assignment works fine and is simpler to manage. If you set a static address and later move your device to a different network, you may need to change it again. Automatic assignment adapts to any network without extra steps.
Troubleshooting after you change your IP address
If you change your IP address and lose internet, the most common cause is a typo in the address or gateway field. Go back to the network settings and double-check that you only changed the last number of your IP address, and that the gateway and subnet mask match what you wrote down earlier. If you are unsure, switch back to automatic assignment — your router will give you a working address when ready.
If a specific device cannot reach another device after you change its IP, the problem may be that the other device was looking for the old address. Restart both devices, or check if the other device has the new address saved in its settings. If you changed the IP of a printer or camera, you may need to re-add it to your computer or phone using the new address.
Frequently Asked Questions
Will changing my IP address hide my activity from websites?
No. Your local IP address (the one inside your home network) is invisible to websites. Websites see your public IP address, which is assigned by your internet provider. Only a VPN changes your public IP. Changing your local IP only affects how devices on your home network find each other.
Can I change my IP address to any number I want?
No. Your IP address must be in the same range as your router's network. If your router is 192.168.1.1, your device address must start with 192.168.1 — you can only change the last number, and it must be between 2 and 254. Using a number outside this range will break your connection.
What happens if two devices have the same IP address?
Both devices will lose internet connection. This is called an IP conflict. If it happens, go back to automatic assignment on one of the devices, or change one device's address so the last number is different. Your router will not let two devices use the same address for long.
Do I need to restart my router after changing my IP address?
No. Your device will update its address within seconds without restarting the router. However, if you lose connection after changing it, restarting the router can help — unplug it for 30 seconds, plug it back in, and wait for it to fully boot before trying to connect again.
Can I change my public IP address?
Not directly through your device settings. Your public IP is assigned by your internet provider. You can request a new one by unplugging your modem for several minutes, but the provider may assign you the same one. A VPN is the only reliable way to change how websites see your IP address.