First decide which address you want to change: the private address your device uses on the local network or the public address internet services see. You can ask the local network for a renewed address or configure one manually. Changing your connection’s public IP follows different rules, often set by your provider.
How to Change My IP Address on a Local Network
A home router commonly assigns private IPv4 addresses to devices using DHCP, the Dynamic Host Configuration Protocol. Your laptop’s address identifies it on that local network. The router often shares a public IPv4 address with several devices through network address translation. Renewing the laptop’s local lease generally does not change the router’s public address.
Before making a change, record the current address, subnet mask or prefix, gateway, DNS servers, and whether assignment is automatic or manual. The gateway is usually the router through which traffic leaves your subnet; DNS translates names such as websites into addresses. Saving these settings gives you a route back if the new configuration fails.
If you ask a network administrator, “Can you show me how to change my IP address on this device?”, identify the active Wi-Fi or Ethernet connection and explain the reason. On a managed network, use only settings approved by its administrator. The following steps apply to your own connection or one you are authorized to configure.
Renew the automatic address
DHCP lends an address for a lease period. Renewing asks the DHCP server to update the lease, but it may return the same address. This is still useful when the aim is to refresh network settings or recover from a temporary problem.
- Windows: Open Command Prompt and run
ipconfig /renewfor DHCP-enabled adapters. Check the result withipconfig /all. If you have several connections, review the active adapter; renewal can affect more than one eligible adapter. - Mac: Open System Settings, select Network and your connection, choose Details, then TCP/IP and Renew DHCP Lease. Apple’s instructions describe this control.
If the address stays the same, the server has simply renewed it. Reconnecting to the network may also result in the same assignment. To choose a consistent local address for a device, a DHCP reservation in the router is often preferable: the server keeps assigning the selected address to that device while continuing to provide the other settings automatically.
Set a local IPv4 address manually
Manual configuration is useful when a device needs a particular address and a reservation is unavailable. Here is how to change an IP address without guessing at the rest of the network configuration:
- Find the subnet and gateway from the current connection or router. For example,
192.168.1.0/24normally uses a mask of255.255.255.0; the router might be192.168.1.1. Your network may use different values. - Choose an unused host address in that subnet, excluding the network address, broadcast address, gateway, and addresses assigned to other devices. Coordinate it outside the router’s DHCP pool or reserve it according to the router’s instructions. A device being offline does not prove its address is free.
- Enter the selected address, subnet mask or prefix, gateway, and suitable DNS servers in the active adapter’s IPv4 settings. In Windows, open Network & internet settings, choose the connection, and edit IP assignment. Microsoft’s guide describes the manual fields.
- Save and check the displayed configuration. Test access to the router or another local device, then open an external site. Restore the saved settings or automatic DHCP if the connection fails.
These examples concern IPv4. IPv6 addressing has different prefixes and assignment behavior; do not apply the example IPv4 values to it. Record and verify each address family separately when both are in use.
Change the public address you present
To see how to change the IP address seen by an external site, first check your public address with a trusted address-checking service and record whether it reports IPv4 or IPv6. Compare that value after the change using the same address family. A site’s observed address can differ from your device’s private address, and some providers share a public IPv4 address among customers.
A provider may assign a dynamic public address under a lease. Restarting a modem or router can reconnect it, but the provider may give it the same address. If your service has a static address under its agreement, contact the provider about changing it. A virtual private network (VPN) routes selected traffic through a VPN server, so an external site normally sees that server’s public address for that traffic. It changes the observed route; it does not necessarily change the address assigned to your home connection, and traffic outside the tunnel can use another path.
Check the result and fix a failure
After changing a device’s local IP, verify the new value in its network settings and test a local resource first. Then check an external site and, if the goal was a public change, compare the observed public address with your earlier result. If local access fails, recheck the subnet, gateway, and duplicate-address risk; return the adapter to DHCP or restore its saved settings. If local access works but names do not resolve, check DNS. If the public value is unchanged, check whether the provider renewed the same lease or whether the traffic actually uses the VPN.



