The method of changing the local IP address depends on whether you want to change the IP address of the private network (LAN) or the public network (public) IP address. For most users, the private IP address can be changed through the local network settings, while the change of the external IP address is usually controlled by the Internet Service Provider (ISP).
Open Control Panel > Network and Sharing Center > Change adapter settings.
Right-click on the network connection (Wi-Fi or wired) you want to change the IP address for and select "Properties".
In the network properties, locate and double-click Internet Protocol Version 4 (TCP IPv4) or Internet Protocol Version 6 (TCP IPv6).
Select "Use IP address below" and enter the IP address, subnet mask, and default gateway you want to set. Usually, the DNS server address also needs to be set manually, either by using your router address as your preferred DNS server, or by using a public DNS such as Google DNS (88.8.8 and 88.4.4)。
Confirm the changes and close all windows.
Open System Preferences > Network.
Select the network interface (e.g. Wi-Fi or Ethernet) you want to change the IP address and click "Advanced".
Switch to the TCP IP tab and select Manual in the Configure IPv4 (or IPv6) drop-down menu.
Enter the IP address, subnet mask, and router (default gateway) address you want. The DNS server address can also be changed here.
Click "OK" and then "Apply" to save the settings.
Changing an external (public) IP address is usually not as straightforward as changing an internal IP address. The public IP address is assigned by your ISP, and there are several ways to try to change it:
Restart your routerSometimes, simply restarting your broadband router may cause your ISP to assign you a new public IP address.
The power is off for a while: If you reconnect the router after a few hours of power, you may get a new IP address.
Contact your ISP: Some ISPs may allow you to request a change of IP address, especially if you encounter a cyberattack or other security issue.
Use a VPNWhile this isn't technically a change to your actual public IP, a VPN can make it appear as if your internet traffic is coming from a different IP address. This is useful for bypassing geo-restrictions or increasing anonymity.
Please note that changing the IP address may cause network connection issues. Make sure you document the original settings before making changes so you can restore them if needed. If you're not sure how to make these changes safely, or if the IP address change is to fix a network issue, it may be best to consult with a professional or your ISP first.