User Agents

Web browsers and everyday web tech, explained

How to Reset and Change IP Address

· 4 min read · How the Web Works

In this article
  1. Understanding IP Addresses: Public vs. Private
  2. How DHCP Assigns IP Addresses
  3. Step-by-Step: Reset IP Address on Windows
  4. Step-by-Step: Reset IP Address on macOS
  5. How to Change Your Public IP Address
  6. Setting a Static Private IP Address
  7. Common Problems and Fixes
  8. Frequently Asked Questions

To reset or change your IP address, you can release and renew your DHCP lease, restart your router, or manually assign a new static IP in your device's network settings. The exact steps differ depending on your operating system and whether you have a local (private) or public IP address.

Understanding IP Addresses: Public vs. Private

Every device on a network has an IP address that identifies it. There are two types you might want to change:

  • Public IP address – assigned by your internet service provider (ISP) to your router. This is what websites see when you connect.
  • Private IP address – assigned by your router to each device on your home or office network (e.g., 192.168.1.5).

Changing your public IP usually requires restarting your modem or contacting your ISP. Changing your private IP can be done directly on the device or through the router's settings.

How DHCP Assigns IP Addresses

Most networks use DHCP (Dynamic Host Configuration Protocol). When a device connects, it requests an IP address from the router, which leases one for a set period. The lease can expire or be renewed, and the router may assign the same address or a different one. Releasing and renewing the lease is the most common way to force a new private IP.

Step-by-Step: Reset IP Address on Windows

  1. Open Command Prompt as administrator (search “cmd”, right-click, “Run as administrator”).
  2. Type ipconfig /release and press Enter. This drops your current IP lease.
  3. Type ipconfig /renew and press Enter. This requests a new IP from the router.
  4. Check the new address with ipconfig.

If you want a completely different IP, you may need to wait for the lease to expire or use a static IP (see below).

Step-by-Step: Reset IP Address on macOS

  1. Open System Settings (or System Preferences on older versions).
  2. Go to Network, select your active connection (Wi-Fi or Ethernet).
  3. Click “Details…” (or “Advanced”).
  4. Go to the TCP/IP tab.
  5. Click “Renew DHCP Lease”.

This forces the Mac to request a new lease from the router.

How to Change Your Public IP Address

Your public IP is set by your ISP. To change it:

  • Restart your modem/router – leave it off for 5–10 minutes. Many ISPs assign a new IP on reconnection, but not always.
  • Use a VPN – this masks your real IP and provides a different one from the VPN server.
  • Contact your ISP – ask for a new IP. Some ISPs offer static IPs for an extra fee.

If you have a static public IP, you cannot change it yourself; you must request a change from your ISP.

Setting a Static Private IP Address

Sometimes you want a fixed IP for a device (e.g., for port forwarding). To set a static IP on Windows:

  1. Open Settings > Network & Internet > Wi-Fi (or Ethernet).
  2. Click your connection, then “Edit” next to IP assignment.
  3. Change to “Manual”, toggle IPv4 on, and enter an IP like 192.168.1.50, subnet mask 255.255.255.0, and gateway (your router’s IP, usually 192.168.1.1).

On macOS, go to Network > Details > TCP/IP, change “Configure IPv4” to “Manually” and enter the details. On mobile, look for “IP settings” in the Wi-Fi network’s advanced options.

Common Problems and Fixes

  • “ipconfig /renew” fails – Make sure you’re connected to the network and run as administrator. Try restarting the router.
  • IP address doesn’t change – The router may have assigned the same address again. Try releasing, then waiting a few minutes before renewing.
  • No internet after change – Double-check your subnet mask and gateway. If using static, ensure the IP is not already in use.
  • Public IP won’t change – ISPs often keep the same IP for a long time. A VPN is the quickest workaround.

Frequently Asked Questions

Will changing my IP address speed up my internet?

No. Your IP address does not affect speed. It only identifies your device. Speed issues are usually related to bandwidth, signal strength, or ISP throttling.

Can I change my IP address to one from another country?

Not directly. Your ISP assigns your public IP based on your location. To get an IP from another country, you need a VPN or proxy server located there.

Is it legal to change my IP address?

Yes, it is legal to change your IP address on your own network. However, using it to evade bans or commit fraud may violate terms of service or laws.

Why does my IP address keep changing on its own?

That’s normal. DHCP leases expire and renew, and your ISP may assign a new public IP periodically. If you want a stable address, request a static IP from your ISP or set a static private IP.

How do I find my current IP address?

On Windows, type ipconfig in Command Prompt. On Mac, go to Network settings. For your public IP, search “what is my IP” in a browser.