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

Your IP address is the number that identifies your device on a network — like a mailing address for data. You can change it in two ways: by getting a new one from your internet provider (usually by restarting your router), or by manually setting a static IP address on your device instead of letting the network assign one automatically. Most people never need to do this. You might change it if you're troubleshooting a connection problem, setting up a local network for printers or file sharing, or testing how software behaves on different addresses.

The steps differ depending on whether you want to change your public IP (the one your internet provider assigns) or your local IP (the one your router assigns within your home network). This guide covers both, starting with the simpler option.

Key Takeaways

  • Restarting your router is the easiest way to get a new public IP address from your internet provider, and usually takes five to ten minutes.
  • Setting a static IP address on your device requires you to enter numbers manually in your network settings, and the process is different on Windows, Mac, and Linux.
  • Before you set a static IP, write down your current network settings (gateway, DNS servers, subnet mask) so you don't lose your connection.
  • If you set a static IP incorrectly, you can always switch back to automatic assignment and your device will reconnect.

Getting a new public IP address by restarting your router

Your internet provider assigns your public IP address — the one visible to websites and services outside your home. The fastest way to get a new one is to restart your router. Power it off completely, wait 30 seconds, then power it back on. Most providers will assign you a different address within a few minutes.

If restarting doesn't change your IP after 10 minutes, try unplugging the modem (the device that connects to your internet line) as well as the router. Wait 30 seconds, plug the modem back in first, wait for its lights to stabilize, then plug in the router. This forces your provider to issue a fresh address. If you still have the same IP after another 10 minutes, contact your internet provider — some plans use a static public IP that doesn't change without a request.

Setting a static local IP address on Windows

A static local IP is the address your device uses within your home network. This is useful if you're setting up a printer that needs a consistent address, or if you want your computer to always appear in the same place on your network.

Step 1: Find your current network settings. Open Settings and go to Network & Internet. Click on your active connection (Wi-Fi or Ethernet). Scroll down and click "Advanced" or "View additional properties". Write down the IPv4 address, Default gateway, and DNS servers — you'll need these numbers.

Step 2: Open network settings for manual configuration. Go back to Network & Internet and click "Advanced network options". Scroll down to "IP settings" and click "Edit". Change the dropdown from "Automatic (DHCP)" to "Manual".

Step 3: Enter your new static address. Turn on the IPv4 toggle. In the "IP address" field, enter a number on the same network as your gateway — for example, if your gateway is 192.168.1.1, use something like 192.168.1.50. Enter the subnet mask you wrote down (usually 255.255.255.0). Enter your gateway address. Under "Preferred DNS", enter the DNS server you wrote down. Click "Save".

Your device will disconnect briefly and reconnect with the new static address. If you lose internet, go back to these settings and switch back to "Automatic (DHCP)" — your device will reconnect immediately.

Setting a static local IP address on Mac

On Mac, you configure a static IP through System Settings rather than a separate network panel.

Step 1: Open network settings. Click the Apple menu, go to System Settings, and click "Network". Select your active connection (Wi-Fi or Ethernet) and click "Details".

Step 2: Switch to manual configuration. Click the "TCP/IP" tab. In the "Configure IPv4" dropdown, select "Manually" instead of "Automatic (DHCP)". Write down the current IPv4 address, subnet mask, router, and DNS servers before you change anything.

Step 3: Enter your static address. In the "IPv4 Address" field, enter a new address on the same network — for example, 192.168.1.50 if your router is 192.168.1.1. Enter the subnet mask you noted (usually 255.255.255.0). Enter your router address. In the DNS Servers field, enter the DNS server addresses you wrote down, separated by commas. Click "OK" and then "Apply".

Your connection will update with the new static address. If you can't reach the internet, return to these settings, switch "Configure IPv4" back to "Automatic (DHCP)", and click "Apply".

Setting a static local IP address on Linux

Linux configuration varies by distribution, but most modern systems use NetworkManager or netplan. The steps below work for Ubuntu and Debian-based systems.

For systems using NetworkManager: Open Settings and go to Network. Click the gear icon next to your active connection. Go to the "IPv4" tab and change the toggle from "Automatic (DHCP)" to "Manual". Enter your static IP address, subnet mask, gateway, and DNS servers. Click "Apply".

For systems using netplan: Open a terminal and type sudo nano /etc/netplan/01-netcfg.yaml (the filename may differ). Find your network interface name (usually eth0 or wlan0) and change the configuration from "dhcp4: true" to "dhcp4: false". Add lines for "addresses", "gateway4", and "nameservers" with your static IP, gateway, and DNS servers. Save the file (Ctrl+O, Enter, Ctrl+X). Type sudo netplan apply to activate the changes.

If you lose connectivity, edit the file again and change "dhcp4: false" back to "dhcp4: true", then run sudo netplan apply again.

Choosing the right IP address to avoid conflicts

When you set a static IP, pick a number that won't collide with addresses your router assigns automatically. Most home routers assign addresses starting from 192.168.1.100 or 192.168.1.50 and going upward. To be safe, use a number below 50 — like 192.168.1.10 or 192.168.1.25 — or check your router's settings to see where its automatic range starts and pick a number outside it.

If you pick an address that's already in use, you'll see a message about an IP conflict and lose your connection. Simply switch back to automatic assignment and try a different number. The conflict resolves as soon as you do.

Troubleshooting when your new IP address doesn't work

If you set a static IP and can't reach the internet, the most common cause is a typo in the gateway or DNS server addresses. Go back to your network settings and compare each number to what you wrote down at the start. A single digit wrong will break your connection.

If you're not sure what your gateway or DNS servers should be, switch back to automatic assignment first — your device will reconnect immediately. Then check your router's admin page (usually at 192.168.1.1 in your browser) to see the correct numbers, or contact your internet provider for the DNS server addresses they recommend.

If you changed your public IP by restarting your router and it hasn't changed after 15 minutes, your provider may have assigned you a static address. Call them and ask whether your plan includes a static IP, or request a dynamic one if you need it to change.

Frequently Asked Questions

Will changing my IP address affect my internet speed?

No. Your speed depends on your internet plan and connection quality, not your IP address. Changing from automatic to static assignment won't make you faster or slower. Restarting your router might temporarily improve speed if your connection was degraded, but that's a side effect of the restart, not the new address.

Can I set a static IP on my phone or tablet?

Yes, but most people shouldn't. Phones and tablets move between networks (home Wi-Fi, work Wi-Fi, cellular), so a static address set at home won't work elsewhere. If you need a device to have a consistent address for something like a printer, it's usually better to set that up in your router instead — most routers let you reserve an address for a specific device automatically.

What's the difference between a static IP and a reserved IP?

A static IP is set on the device itself through its network settings. A reserved IP is set in your router and tells the router to always give a specific device the same address automatically. Reserved IPs are easier to manage because you only configure them once in the router, and the device doesn't need manual setup.

If I set a static IP, will my device still work on other networks?

No. A static IP set for your home network (like 192.168.1.50) won't work on a different network like your workplace or a coffee shop. When you connect to a new network, you'll need to either switch back to automatic assignment or manually set a new static IP for that network. Most people just use automatic assignment and only set static IPs for devices that stay in one place.

Can I change my IP address to hide my location?

Changing your local IP address (the one within your home network) won't hide your location — websites see your public IP, which comes from your internet provider. To hide your public IP, you would need a VPN service, which is a different tool entirely and outside the scope of this guide.