WindowsLoop

How to Change IP Address in Command Prompt (Renew IP)

To renew or change the IP address, you can use the netsh command. Here’re the steps to change the IP address in Command Prompt in Windows 10.

When connected to a network, the Windows computer will automatically get a new IP address as long as it is configured to “ Obtain an IP address automatically “. Generally, having the IP address auto-assigned is pretty helpful as you don’t have to configure any extra settings to connect to a network. For instance, you can just plug-in the ethernet cable or connect to a WiFi network and you are ready to go thanks to the auto-config option in Windows 10.

Though Windows can automatically obtain an IP address without any hassle, there might times where you need a specific IP address. For example, to share files in your local network, having a static IP address is really helpful. This eliminates the need to reconfigure the IP address every time you want to access the network drive. In these kinds of cases, you need to change the IP address in Command Prompt .

Thankfully, with just a couple of commands, you change the IP address from Command Prompt. Here are the exact steps you should follow.

Steps to Change IP Address in Command Prompt

To change the IP address from the Windows Command Prompt, there are two major steps. First, you need to know the network interface name and then use it to set the IP address. It is pretty easy. Follow the steps as shown below and you will be good.

  • First, press the Windows key to open the Start menu .
  • Now, type “ Command Prompt ” in the search bar.
  • Right-click on the Command Prompt and select the “ Run as administrator ” option.
  • Execute the below command to get the network interface name. netsh interface ipv4 show config

Change-ip-address-in-command-prompt-040920

  • Once you have the interface name, execute the below command while replacing “IP_Address”, “Subnet_Mask”, and “Gateway” with the actual IP address you want to assign, subnet mask, and gateway respectively. netsh interface ipv4 set address name="Interface_Name" static IP_ADDRESS SUBNET_MASK GATEWAY
  • After assigning the IP address, close the command prompt window .

That is all. It is that simple to change the IP address in the command prompt.

Note: You can get the subnet mask and gateway addresses from the router or from your ISP.

If you want the IP address to be assigned automatically, execute the below command. This will set the network interface from Static IP to DHCP. DHCP will automatically get a new IP address from the router.

That is all. I hope that helps. If you are stuck or need some help comment below and I will try to help as much as possible. If you like this article, check out how to change the network name in Windows 10 .

Leave a Comment Cancel Reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

  • Network Fundamentals
  • Network Cabling
  • Ethernet Protocol
  • TCP-UDP Protocol
  • IP Protocol
  • Supernetting & CIDR
  • ICMP Protocol
  • Domain Name System (DNS)
  • Spanning Tree Protocol (STP)
  • VLAN Networks
  • Network Address Translation
  • Cisco Routers
  • Cisco Switches
  • Cisco Firewalls
  • Cisco Wireless
  • Cisco CallManager-CCME
  • Cisco Data Center (Nexus/UCS)
  • Cisco Services & Technologies
  • Palo Alto Networks
  • F5 Networks
  • SASE & SD-WAN
  • Security Service Edge (SSE)
  • Web Application Vulnerability Scanners
  • VPN Services & Guides
  • Windows Servers
  • Windows Workstations (XP, 7, 8, 10, 11)
  • Linux - Unix
  • Virtualization & VM Backup
  • OpManager - Network Monitoring & Management
  • ManageEngine Firewall Analyzer

EventLog Analyzer

  • Network Protocol Analyzers
  • IP PBX - Unified Communications
  • Security Articles
  • Reviews & Interviews
  • GFI Network Security
  • OpenMosix - Linux Supercomputer
  • More Reading

Firewall.cx

Free Download

change ip address windows 7 cmd

Get 2 VMs for FREE!

change ip address windows 7 cmd

Download Now!

change ip address windows 7 cmd

Free Download!

change ip address windows 7 cmd

Manage your Network!

How to change & configure an ip address or set to dhcp, using the command prompt in windows 7.

Not many users are aware that Windows 7 provides more than one way to configure a workstation’s network adaptor IP address or force it to obtain an IP address from a DHCP server . While the most popular method is configuring the properties of your network adaptor via the Network and Sharing Center , the less popular and unknown way for most users is using the netsh Command Prompt. In this tutorial, we show you how to use the Command Prompt netsh command to quickly and easily configure your IP address or set it to DHCP .  Competent users can also create simple batch files (.bat) for each network (e.g home, work etc) so they can execute them to quickly make the IP address, Gateway IP and DNS changes.

In order to successfully change the IP address via Command Prompt , Windows 7 requires the user to have administrative rights . This means even if you are not the administrator, you must know the administrative password , since you will be required to use the administrative command prompt .

Opening The Administrative Command Prompt On Windows 7

To open the administrative command prompt in Windows 7 , first click on the Start icon. In the search dialog box that appears, type cmd and right-click on the cmd search result displayed. On the menu that Windows brings up, click on the Run as administrator option as shown in the below screenshot:

windows-7-change-ip-address-via-cmd-prompt-1

Depending on your User Account Control Settings ( UAC ), Windows may ask for confirmation. If this happens, simply click on Yes and Windows will present the CLI prompt running in elevated administrator privileged mode :

windows-7-change-ip-address-via-cmd-prompt-2

Using The ‘netsh’ Command Prompt To Change The IP Address, Gateway IP & DNS

At the Administrative Command Prompt , type  netsh interface ip show config , which will display the network adapters available on your system and their names. Note down the name of the network adaptor for which you would like to set the static IP address.

windows-7-change-ip-address-via-cmd-prompt-3

In our example, we’ll be modifying the IP address of the interface named Wireless Network Connection , which is our laptop’s wireless network card.

Even if the Wireless Network Connection is set to be configured via DHCP , we can still configure a static IP address. Following is the command used to configure the interface with the IP address of 192.168.5.50 with a subnet mask of 255.255.255.0 and finally a Gateway of 192.168.5.1 :

Next, we configure our primary DNS server using the netsh command with the following parameters:

Note: When entering a DNS server, Windows will try to query the DNS server to validate it. If for any reason the DNS server is not reachable (therefore not validated), you might see the following error:

To configure the DNS server without requiring DNS Validation , use the validate=no parameter at the end of the command:

This command forces the DNS server setting without any validation and therefor no error will be presented at the CLI output in case the DNS server is not reachable.

To verify our new settings, use the netsh command with the following parameters:

At this point, we should see the network settings we configured, as shown below:

windows-7-change-ip-address-via-cmd-prompt-4

Using The 'netsh' Command Prompt To Set The Network Interface Card To DHCP

You can use the netsh command to switch your current adapter from static to DHCP.  To switch your network adaptor from static IP configuration to DHCP, use the following command:

Windows will not return any confirmation after the command is entered, however if the network adaptor has successfully obtained an IP address and has Internet connection, there should not be any network icon with an exclamation mark in the taskbar notification area as shown below:

windows-7-change-ip-address-via-cmd-prompt-5

Finally, to verify that DHCP is enabled and we’ve obtain an IP address, use the netsh command with the following parameters:

This article showed how to configure a Windows 7 network interface with an IP address , Gateway and DNS server , using the Administrative Command Prompt . We also showed how to set a Windows 7 network interface to obtain an IP address automatically from a DHCP server .

Your IP address:

81.177.182.136

FREE Hyper-V & VMware Backup

FREE Hyper-V & VMware Backup

Wi-Fi Key Generator

Network and server monitoring.

Network and Server Monitoring

Follow Firewall.cx

Please enable the javascript to submit this form

Recommended Downloads

  • Network Management - Monitor & Alert
  • Free Hyper-V & VMware Backup
  • SD-WAN Networks & Security

Bandwidth Monitor

  • Patch Manager Plus

Firewall Analyzer

Cisco password crack.

Decrypt Cisco Type-7 Passwords on the fly!

Decrypt Now!

Bandwidth Monitor

Free PatchManager

Free PatchManager

Related Articles

Revealing & backing up your windows 8 – windows 8.1 pro license product key, installing the ‘unsupported’ profilic usb-to-serial adapter pl-2303hxa & pl-2303x on windows 8 & 8.1, microsoft windows xp - end of life / end of support, how to view hidden files & folders in windows 7, how to add and remove applications from windows 8 / 8.1 start screen.

  • PRO Courses Guides New Tech Help Pro Expert Videos About wikiHow Pro Upgrade Sign In
  • EDIT Edit this Article
  • EXPLORE Tech Help Pro About Us Random Article Quizzes Request a New Article Community Dashboard This Or That Game Popular Categories Arts and Entertainment Artwork Books Movies Computers and Electronics Computers Phone Skills Technology Hacks Health Men's Health Mental Health Women's Health Relationships Dating Love Relationship Issues Hobbies and Crafts Crafts Drawing Games Education & Communication Communication Skills Personal Development Studying Personal Care and Style Fashion Hair Care Personal Hygiene Youth Personal Care School Stuff Dating All Categories Arts and Entertainment Finance and Business Home and Garden Relationship Quizzes Cars & Other Vehicles Food and Entertaining Personal Care and Style Sports and Fitness Computers and Electronics Health Pets and Animals Travel Education & Communication Hobbies and Crafts Philosophy and Religion Work World Family Life Holidays and Traditions Relationships Youth
  • Browse Articles
  • Learn Something New
  • Quizzes Hot
  • This Or That Game New
  • Train Your Brain
  • Explore More
  • Support wikiHow
  • About wikiHow
  • Log in / Sign up
  • Computers and Electronics
  • Operating Systems

How to Change Your IP Address (Windows)

Last Updated: March 13, 2020 Tested

This article was written by Stan Kats and by wikiHow staff writer, Jack Lloyd . Stan Kats is the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology & cybersecurity solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan has over 7 years of cybersecurity experience, holding senior positions in information security at General Motors, AIG, and Aramark over his career. Stan received a BA in International Relations from The University of Southern California. The wikiHow Tech Team also followed the article's instructions and verified that they work. This article has been viewed 2,538,817 times.

This wikiHow teaches you how to change both your public IP address and your private IP address on a Windows computer. Your public IP address is the address that your computer broadcasts to other networks, while your private IP address is your computer's specific address within your own wireless network. Changing either of these may fix connection issues.

Step 1 Unplug your router and modem.

  • You may want to check your current IP address before doing this.
  • Simply unplugging the router and modem from the wall will work.

Step 2 Disable your computer's Wi-Fi.

  • Click Wi-Fi in the pop-up window.

Step 3 Wait for five minutes.

  • You may want to check your IP address again to make sure it has changed.

Step 6 Contact your ISP.

Renewing the Address

Step 1 Open Start icon.

  • If you aren't an administrator on your current computer, you won't have this option and thus won't be able to renew your computer's IP address.

Step 5 Click Yes when prompted.

Changing the Address

Step 1 Open the Settings...

  • IP address - Usually, your device's IP address will be "192.168.1.X" (or a similar set of numbers), wherein "X" is specific to your device. Change the "X" value to a number between 1 and 100. Make sure you don't use the same IP address as another device on your network (e.g., your phone).
  • Subnet prefix length - This depends on your IP address, but will usually be "255.255.255.X".
  • Gateway - This is your router's IP address.
  • Preferred DNS - Your preferred DNS address (for example: "208.67.222.222" for the OpenDNS server, or "8.8.8.8" for Google's server).
  • Alternate DNS - A secondary DNS address (for example: "208.67.220.220" for the OpenDNS server, or "8.8.4.4" for Google's server).

Step 9 Click Save.

Expert Q&A

Stan Kats

  • You'd change your public IP address in the event that you were kicked out of a gaming service (e.g., Steam), while you'd change your private IP address to fix website loading errors. Thanks Helpful 1 Not Helpful 0
  • Using a proxy server will not change your IP address in the traditional sense, but it will alter the IP address that others can see. Thanks Helpful 0 Not Helpful 0
  • You can also use a browser like Tor to hide your IP address, though such browsers can be dangerous and are often slower than average. Thanks Helpful 0 Not Helpful 0

change ip address windows 7 cmd

  • If you choose an in-use IP address for your computer when changing its private IP address, the device that is currently using that address will get kicked off of the network. Thanks Helpful 0 Not Helpful 0

You Might Also Like

Surf the Web Anonymously with Proxies

  • ↑ http://www.whatismyip.com/ip-faq/how-to-change-your-ip-address/

About This Article

Stan Kats

1. Unplug your router and modem. 2. Disable your Wi-Fi. 3. Wait 5 minutes. 4. Plug the router and modem back in. 5. Re-enable Wi-Fi. Did this summary help you? Yes No

  • Send fan mail to authors

Is this article up to date?

change ip address windows 7 cmd

Featured Articles

Make Blueberry Pancakes

Trending Articles

How to Take the Perfect Thirst Trap

Watch Articles

Wrap a Round Gift

  • Terms of Use
  • Privacy Policy
  • Do Not Sell or Share My Info
  • Not Selling Info

wikiHow Tech Help:

Tech troubles got you down? We've got the tips you need

site logo

Change IP Address and DNS Servers using the Command Prompt

Just because it's more fun

Author avatar

The Command Prompt application, sometimes referred to as command shell, is found in most Windows NT-based operating systems. Its purpose is to execute specific commands for troubleshooting or solving specific Windows issues, performing advanced administrative functions, and automating tasks via batch files and scripts.

That said, you can also use it to change your IP address when you want to spoof it to bypass geoblocks or online bans on sites that impose such restrictions on their content, or change your Domain Name System (DNS) servers for troubleshooting reasons or to make surfing more secure and faster.

Change IP Address and DNS Servers using the Command Prompt image 1

In this guide, we’re going to show you how to change your IP address and DNS servers using the Command Prompt in Windows 10.

How To Change IP Address Using Command Prompt

An IP address holds information about your device, location, your internet service provider (ISP), and browser information.

Changing it is useful when you have a malfunctioning router that’s providing addresses used by a different computer on the network or an invalid address is accidentally configured.  It’s also helpful when you want to install a new router and reconfigure your home network to use the default IP address range.

Change IP Address and DNS Servers using the Command Prompt image 2

The first step to changing your IP address is to find the network name for the interface you want to change. 

  • Open an elevated Command Prompt by typing CMD in the search bar and clicking on Run as Administrator .

Change IP Address and DNS Servers using the Command Prompt image 3

  • Next, type netsh interface ipv4 show config in the command prompt window, press Enter, and scroll down to the interface you want.

Change IP Address and DNS Servers using the Command Prompt image 4

In our case, we’ll be modifying the WiFi interface, but you can pick the correct interface for your case. Make note of the interface name.  

  • To change the IP address, type this command: netsh interface ipv4 set address name=”YOUR INTERFACE NAME” static IP_ADDRESS SUBNET_MASK GATEWAY

In our example, this command would look like this: netsh interface ipv4 set address name=”Wi-Fi” static 192.168.0.173 255.255.255.0 192.168.0.0

Change IP Address and DNS Servers using the Command Prompt image 5

This command will use the Wi-Fi interface, set the IP address to 192.168.0.173, set the subnet mask to 255.255.255.0 and set the default gateway to 192.168.0.0.

If you want to switch to using an IP address automatically assigned by a DHCP server instead of a static IP address, use the netsh interface ipv4 set address name=”YOUR INTERFACE NAME” source=dhcp command.

How To Change DNS Servers Using Command Prompt

 A DNS server holds public IP addresses and related hostnames in a database, and is used to resolve or translate the hostnames to IP addresses. The server does this by running special software to communicate with other servers through special protocols based on certain requests from the computer. 

The conversion process is thoroughly vetted and verified, and it happens quickly behind the scenes so as to obtain information corresponding to the server that the computer is looking for, and then tells the original connecting computer where to go so that it can connect to that server.  

Change IP Address and DNS Servers using the Command Prompt image 6

There are several reasons why you’d want to change your default DNS server , but the main ones are:

  • Boost your privacy when getting around a firewall, bypassing geoblocks or ISP blocks on a website
  • Increase security
  • Parental controls like blocking websites from your router
  • Speed your surfing, which your own ISP’s DNS servers may not offer because they’re not always reliable or up-to-date

Note : You can change DNS servers individually for your home network on your router or on computers, smartphone, and Chromebook, among other devices

How To Change DNS Servers With Command Prompt

Follow the steps below to learn how to change DNS servers using Command Prompt.

  • Open an elevated Command Prompt by typing CMD in the search bar, and clicking Run as Administrator .

Change IP Address and DNS Servers using the Command Prompt image 7

  • Type netsh and press Enter .

Change IP Address and DNS Servers using the Command Prompt image 8

  • Next, type interface ip show config and press Enter .

Change IP Address and DNS Servers using the Command Prompt image 9

  • Find the network interface whose DNS server you want to change, and enter the netsh interface ipv4 set dns name=”YOUR INTERFACE NAME” static DNS_SERVER . This will set your primary DNS server.

From our example above, we changed the IP address for the “Wi-Fi” interface, so we’ll use the same example to change DNS servers. 

For purposes of this guide, we’ll use Google’s primary public DNS server, 8.8.8.8. The command will look something like this: netsh interface ipv4 set dns name=”Wi-Fi” static 8.8.8.8

Change IP Address and DNS Servers using the Command Prompt image 10

  • Next, type the netsh interface ipv4 set dns name=”YOUR INTERFACE NAME” static DNS_SERVER index=2 command to set the secondary DNS server. Again, we’ll use Google’s public DNS secondary server, 8.8.8.8  as an example, which will look like this: netsh interface ipv4 set dns name=”Wi-Fi” static 8.8.4.4 index=2.

Change IP Address and DNS Servers using the Command Prompt image 11

Note : You can use the netsh interface ipv4 set dnsservers name”YOUR INTERFACE NAME” source=dhcp command if you want the network interface to automatically pick DNS settings from a DHCP server. Continuing with our example, this command would look like this: netsh interface ipv4 set dnsservers name”Wi-Fi” source=dhcp

Command Prompt is a great tool to use when you want to change IP addresses and DNS servers. It’s faster and saves you the hassle of having to click through several windows and dialog boxes from the Control Panel interface just to get to the IPv4 Properties dialog box to do the same thing. 

Was this guide helpful? Let us know by dropping your comment in the section below.

' src=

Elsie is a technology writer and editor with a special focus on Windows, Android and iOS. She writes about software, electronics and other tech subjects, her ultimate goal being to help people out with useful solutions to their daily tech issues in a simple, straightforward and unbiased style. She has a BCom degree in Marketing and currently pursuing her Masters in Communications and New Media. Read Elsie's Full Bio

Read More Posts:

change ip address windows 7 cmd

Leave a Reply

Your email address will not be published. Required fields are marked *

How to View & Change Your IP Address in Windows 7, 8, and 10

You can use your computer without even knowing your own IP address, but would you like to know how to check? Here's how to quickly check or change your IP address in Windows.

Modern technologies mean that it's easy to get your devices online and not give a second thought to what your IP address is, but maybe you want to go further. If you're troubleshooting an IP conflict issue , setting up several devices on a network, or are just plain curious, it's good to know how to view your IP address and change it if needed.

In Windows, you can easily view your IP address by typing cmd into the Start Menu to open a command prompt, then typing ipconfig . This will bring up configuration info for all network adapters on your machine (such as Ethernet and wireless), letting you view the IP address and more for each one.

On a network, you can release this IP address and get a new one by typing ipconfig /release , followed by ipconfig /renew .

If you'd like to set a static IP instead being assigned one each time you connect, open the Start Menu and type Network and Sharing Center to launch this menu. Where you see Connections , click the blue text next to that (probably Wi-Fi ).

Click Properties on the window that results and finally double-click on Internet Protocol Version 4 . Here you can manually punch in an IP address that this device will always use, even after a reboot. Make sure you check the box to Validate settings upon exit so that if you put in a bad address, it lets you know right away.

You probably don't need to set a static IP for your own basic use, but it's a useful bit of knowledge if you ever need it!

Looking for more IP address fun? Check out how to trace an IP address to its originating PC .

Image Credit: Rob Bouwman via Shutterstock.com

How-To Geek

How to change your ip address.

Need to fix networking issues? Changing your IP address should help.

Quick Links

Why would you want to change your ip address, static vs. dynamic ips: should you get a static address instead, key takeaways.

The simplest way to change your IP address is to power off your router, wait at least 10 seconds, then power it back on. If that doesn't fix your problem, you may want to set a static IP address instead.

Changing your IP address is a simple fix for a number of networking issues. However, there's more than one way to cook that particular egg. So let's go over your options for getting a new IP address, and why you'd choose one over the other.

Your  IP address is a set of numbers that works both as a way to locate you in the real world as well as serves as your digital address. When you connect to the internet, for example, your internet service provider or ISP will assign you an IP that will reveal to the sites you visit where you're connecting from---it's why sites will usually change language when you're accessing them from abroad.

Changing your network IP will make you appear like you're somewhere else, great for circumventing censorship blocks or even changing your Netflix library to that of another country. However, that's not possible without using outside help, so to speak. You'll usually have to use a third-party program to alter your IP that way, and it only works while that program is active.

There are a few ways to temporarily change your IP like this, we discuss them at length in our article on how to hide your IP address . In most cases, your best bet is to use a virtual private network (VPN) to fake your IP and thus make it appear that you're somewhere else. It's pretty cool, and easy to do.

However, it's not just your internet connection that broadcasts an IP address: each device you own also has its own, unique IP. This is so each device can properly communicate with both the network and each other.

If there's a problem with your network's IP or that of a specific device, they may not connect properly or have some other issues. A VPN won't fix these problems, at least not for the long-term; the only way to get rid of these issues is to permanently change your IP address. Luckily, this isn't that hard to do.

The first way to fix any issues is to change your network's IP. This is a lot easier than you may think thanks to something called the Dynamic Host Configuration Protocol . DHCP is a protocol---a set of rules that governs how machines "talk" to each other---which can change the IP address associated on the fly, hence "dynamic."

To do so, all you really need to do is turn your router off, wait 10 seconds, and turn it on again . (Simply resetting usually doesn't work, but it depends very much on the router.) Once the router is fully on and working again, you should have a new IP address.

You can, of course, check to make sure. To do so, before you switch off the router, find your IP address either by asking your favorite search engine what it is or using a tool like IPleak.net . Write down the IP, switch your router on and off, and then check again.

However, the above fix is a short-term one that mainly only works if you have a simple issue, like if your router suddenly starts acting up. If you have permanent networking issues with your devices, you may have to throw out DHCP altogether and instead set up a static IP address, one that doesn't change.

Related: How to Set Static IP Addresses on Your Eero Router

Setting a static IP address will hopefully get rid of any networking issues, or at least narrow down the list of possible causes for why your devices aren't talking to each other. That said, there are a few different ways to tackle this issue.

First off, you could reach out to your ISP and simply ask them to change your IP address. You'll probably have to explain what the issue is and walk through a few steps with them---this really depends on your ISP---but if the tech is worth their salt, they'll take care of it for you.

Manually Set a Static IP Address

However, that may not be necessary: there are plenty of ways you can track down and fix any issues yourself, starting with changing your router's IP to static. We have a full tutorial on how to set a static IP on your router , and this should hopefully change any issues you have on the network level.

That said, it could be your laptop or desktop causing the issues. In that case, you could try setting a static IP on your Windows computer ---or, if you prefer, using the Windows command prompt . Members of Team Penguin can check out this tutorial on how to set a static IP in Ubuntu . It's also worth noting that  iPhones have a built-in function for changing IPs and setting static ones too .

Whichever route you end up taking, with a few minutes of work your networking issues should be a thing of the past.

change ip address windows 7 cmd

Change TCP/IP settings

TCP/IP defines how your PC communicates with other PCs.

To make it easier to manage TCP/IP settings, we recommend using automated Dynamic Host Configuration Protocol (DHCP). DHCP automatically assigns Internet Protocol (IP) addresses to the computers on your network if your network supports it. If you use DHCP, then you don't have to change your TCP/IP settings if you move your PC to another location, and DHCP doesn't require you to manually configure TCP/IP settings, such as Domain Name System (DNS) and Windows Internet Name Service (WINS).

To enable DHCP or change other TCP/IP settings

Select  Start , then type settings . Select  Settings  >  Network & internet .

Do one of the following:

For a Wi-Fi network, select  Wi-Fi  >  Manage known networks . Choose the network for which you want to change the settings.

For an Ethernet network, select  Ethernet , then select the Ethernet network you’re connected to.

Next to  IP assignment , select  Edit .

Under  Edit network IP settings or Edit IP settings , select  Automatic (DHCP)  or  Manual .

To specify IPv4 settings manually

Under  Edit network IP settings or Edit IP settings , choose  Manual , then turn on  IPv4 .

To specify an IP address, in the  IP address, Subnet mask , and  Gateway  boxes, type the IP address settings.

To specify a DNS server address, in the  Preferred DNS  and  Alternate DNS  boxes, type the addresses of the primary and secondary DNS servers.

To specify if you want to use an encrypted (DNS over HTTPS) or unencrypted connection to the DNS server or servers you specify, for DNS over HTTPS , choose the setting you want:

Off : All DNS queries will be sent to the DNS server unencrypted in plaintext over HTTP.

On (automatic template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. DNS queries will use the default settings for the automatic template or try to discover them automatically.

On (manual template) : DNS queries will be encrypted and sent to the DNS server over HTTPS. They’ll use the settings you enter in the DNS over HTTPS template box.

If you use DNS over HTTPS (automatic or manual template), turn Fallback to plaintext on or off:

When it’s turned on, a DNS query will be sent unencrypted if it can’t be sent over HTTPS.

When it’s turned off, a DNS query won’t be sent if it can’t be sent over HTTPS.

To specify IPv6 settings manually

Under  Edit network IP settings or Edit IP settings , choose  Manual , then turn on  IPv6 .

To specify an IP address, in the  IP address , Subnet prefix length , and  Gateway  boxes, type the IP address settings.

When you select  Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).

When you select  Manual , you can manually set your IP address settings and DNS server address.

When you’re done, select  Save .

Note:  To install IPv4, run Command Prompt as an administrator, type netsh interface ipv4 install , and then press Enter .

Select Start   , then select Settings   > Network & Internet   .

For a Wi-Fi network, select Wi-Fi   > Manage known networks . Choose the network you want to change the settings for, then select Properties.

For an Ethernet network, select Ethernet , then select the Ethernet network you’re connected to.

Under IP assignment , select Edit .

Under Edit IP settings , select Automatic (DHCP) or Manual .

Under Edit IP settings , choose Manual , then turn on IPv4 .

To specify an IP address, in the IP address, Subnet prefix length , and Gateway boxes, type the IP address settings.

To specify a DNS server address, in the Preferred DNS and Alternate DNS boxes, type the addresses of the primary and secondary DNS servers.

Under Edit IP settings , choose Manual , then turn on IPv6 .

When you select Automatic (DHCP) , the IP address settings and DNS server address setting are set automatically by your router or other access point (recommended).

When you select Manual , you can manually set your IP address settings and DNS server address.

When you’re done, select Save .

In Windows 8.1, select the Start button, start typing View network connections , and then select View network connections in the list.

In Windows 7, open Network Connections by selecting the Start button, and then selecting Control Panel . In the search box, type adapter , and then, under Network and Sharing Center , select View network connections .

Right-click the connection that you want to change, and then select Properties . If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

Select the Networking tab. Under This connection uses the following items , select either Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) , and then select Properties .

To specify IPv4 IP address settings, do one of the following:

To get IP settings automatically using DHCP, select Obtain an IP address automatically , and then select OK .

To specify an IP address, select Use the following IP address , and then, in the IP address, Subnet mask , and Default gateway boxes, type the IP address settings.

To specify IPv6 IP address settings, do one of the following:

To get IP settings automatically using DHCP, select Obtain an IPv6 address automatically , and then select OK .

To specify an IP address, select Use the following IPv6 address , and then, in the IPv6 address, Subnet prefix length , and Default gateway boxes, type the IP address settings.

To specify DNS server address settings, do one of the following:

To get a DNS server address automatically using DHCP, select Obtain DNS server address automatically , and then select OK .

To specify a DNS server address, select Use the following DNS server addresses , and then, in the Preferred DNS server and Alternate DNS server boxes, type the addresses of the primary and secondary DNS servers.

To change advanced DNS, WINS, and IP settings, select Advanced .

Facebook

Need more help?

Want more options.

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

change ip address windows 7 cmd

Microsoft 365 subscription benefits

change ip address windows 7 cmd

Microsoft 365 training

change ip address windows 7 cmd

Microsoft security

change ip address windows 7 cmd

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

change ip address windows 7 cmd

Ask the Microsoft Community

change ip address windows 7 cmd

Microsoft Tech Community

change ip address windows 7 cmd

Windows Insiders

Microsoft 365 Insiders

Find solutions to common problems or get help from a support agent.

change ip address windows 7 cmd

Online support

Was this information helpful?

Thank you for your feedback.

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Fast way to change IP address on Windows

OS: WinXP, Win7

enter image description here

  • You can do this with Netshell commands, I know you can... how? Not sure. –  SpacemanSpiff Mar 2, 2011 at 21:07

3 Answers 3

You can use netsh.exe to make the changes from a command line. Here are a couple links to get you rolling.

http://support.microsoft.com/kb/242468

http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

DanBig's user avatar

The best app for changing ip in win is http://www.netsetman.com/index.php?s=nsm

something like network manager in linux

B14D3's user avatar

This works for me on Windows 7 32-bit. You MAY need to run this application as an Administrative user depending on your UAC settings.

http://sourceforge.net/projects/winipchanger/

SpacemanSpiff's user avatar

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged networking windows-7 windows-xp ..

  • The Overflow Blog
  • Down the rabbit hole in the Stack Exchange network
  • Featured on Meta
  • Upcoming privacy updates: removal of the Activity data section and Google...
  • Changing how community leadership works on Stack Exchange: a proposal and...

Hot Network Questions

  • Gluing objects of derived category of sheaves
  • Is Freyd's thesis available online anywhere?
  • Can a decimal that is infinitely repeating in one base be nonrepeating in another?
  • Is it coincidence that the earth's rotation and revolution are in the same direction?
  • Who to consult about variety of issues? A home inspector or a contractor?
  • Were any U.S. founding fathers present at the storming of the Bastille?
  • How do you make nice recess in a melamine board for IKEA shelf holders?
  • What do we mean when we say something is done "in hardware" versus "in software"?
  • How to generate a complicated table
  • Which source shows the Gamorrahs for each pasuk in the Chumash?
  • How to use sed to remove newlines above and below a string?
  • Why was the standard distance set to 10 parsec and not simply to 1 parsec?
  • Why deplane all passengers and not the troublemaker?
  • How to pass the values of a variable of the first model to a parameter of the second model?
  • Will there be another joint International Space Station (ISS) after the current is retired?
  • Why does the Falcon 9 first stage perform a burn at 60 km altitude?
  • Why don't we just unshift the IR photos from Webb?
  • Does the prohibiting of Kilayim apply to hydroponics
  • As a private tutor, is it ethical to recommend the student take more classes?
  • Sum up snail number neighbours
  • Is there any chance a Japanese person would understand this spoken line WITHOUT kanji? [Attack on Titan]
  • Is the realization of random variable also a random variable?
  • Why did PC users need partitions in the 1980's
  • What's the relation between a language being managed and its compiler being reversible?

change ip address windows 7 cmd

More Recovery Products

  • Partition Manager     Partition Master Personal disk manager   Partition Master Enterprise Business disk optimizer   Edition Comparison Partition Master Versions Comparison   Disk Copy Hard drive cloning utility Partition Master Free Partition Master Pro

Centralized Solutions

MSPs Service

Screen Capture

Video Toolkit

Audio Tools

Transfer Products

File Management

iOS Utilities

More Products

  • Support     Support Center Guides, License, Contact   Download Download installer   Chat Support Chat with a Technician   Pre-Sales Inquiry Chat with a Sales Rep   Premium Service Solve fast and more

How to Change Your IP Address on Computer

change ip address windows 7 cmd

Daisy updated on Jan 11, 2024 | Home > Computer Instruction

This article will introduce 3 methods to change IP addresses in Windows 10.

An IP address is a string that uniquely identifies a device on the network. Computers use IP addresses to communicate and carry location information that helps routers and websites identify themselves and exchange information.

Changing your IP address is not illegal, as some think; aside from that, it strengthens your system security. Whether you use a VPN (Virtual Private Network) or not, you should learn how to do it yourself.

Within a few steps, you can save a lot of money and avoid paying some computer professionals for such minute things. As you read on, you will learn how to change the IP address in Windows 10 .

Let's begin with how to change the IP address on Windows.

Method 1. How to Change IP Address on Windows via Control Panel

Some Windows PCs have IP addresses set up to remain unchanging; this might not help when you need higher security or access some applications that are not easily accessible in your location.

Here's how to go about it:

Step 1. Open the Control Panel , and select 'Networking and Sharing Center'. If you don't see it, select 'Network and Internet'.

select Network and Internet

Step 2. Choose 'Change adapter settings'.

change adapter settings

Step 3. Double-click the specific connection whose IP address you want to change.

Step 4. Then, select Properties.

select Properties

Step 5. Choose 'Internet Protocol Version 4 (TCP/IPv4)'.

Step 6. Then, select 'Obtain an IP address automatically' or alter it manually. Doing it makes the IP address static while choosing the automatic option makes the router assign an IP address to the computer automatically.

select obtain an ip address automatically

If the content of the article is useful, share it on social media platforms to help more people.

Method 2. How to Change IP Address in Windows 10 via Settings

You can also change your IP address using the Settings App. Follow the steps below to change IP addresses via Settings.

Step 1. Press the Windows key and I to open the Settings App. Then select 'Network & Internet'.

press the Windows key + I

Step 2. Select Wi-Fi, as seen in the screenshot below, and select the network you are connected to.

select Wi-Fi

Step 3. Under 'IP assignment', click on 'Edit', and you can also change DNS settings here.

click on Edit

Step 4. To set the IP address automatically, select 'Automatic (DHCP)' as a dropdown in 'Edit network IP Settings'. Then click Save.

select ‘Automatic (DHCP)'

Step 5. Toggle on the IPv4 switch.

Toggle on the IPv4 switch

Step 6. Enter the information of your new IP address, which are your current IP address, subnet mask, and gateway (router IP). Then click Save.

enter the information

Method 3. How to Change IP in CMD (Command Prompt)

Alternatively, if you are a fan of the black screen, you can also change your IP address from the Command Prompt. You can boot Command Prompt in Windows 10 and change the IP address in CMD. The steps below will help you achieve this successfully.

Step 1. Press the Windows key and R, and type in 'cmd'. Then press Enter. A black screen comes up.

Step 2. Type 'ipconfig', then press Enter to check the current IP address of your computer.

Type ‘ipconfig’ and then press Enter

Step 3. Type 'Netsh' to assign an IP to your computer and press Enter. Then enter 'Interface IP' to change the console from 'netsh>' to 'netsh interface ipv4'.

Type ‘Netsh’

Step 4. Type 'set address "Ethernet0" static 192.168.1.10 255.255.255.0 192.168.1.1'. The general format is 'set address "Ethernet0" static IP_address Subnet_mask Gateway'.

type Ethernet0

Step 5. In addition, type 'set dnsservers "Ethernet0" static 192.168.1.10 primary' to define the DNS information.

set dnsservers

Step 6. Type 'Exit', then press Enter to leave the netsh interface.

type exit

Step 7. Type 'ipconfig/all' to confirm that the static IP address, gateway, subnet mask, and DNS server IP have changed.

Type ‘ipconfig/all’

Until now, changing IP address seems like a superhuman skill. You can now see that changing your IP address is a simple thing to do. This skill will be handy in enhancing your security and privacy. In addition, knowing how to change an IP address on a computer saves and hides all your activity from hackers.

Perhaps you have more questions on how to change an IP address on a computer; our FAQ section might help.

1. Can you change your IP address location?

Yes, but you can only achieve this using a Virtual Private Network (VPN). This is because a VPN gives you a unique IP address anywhere on earth.

2. Is changing an IP address dangerous or illegal?

Changing an IP address is not illegal. People change IP addresses for many good reasons, like making their online security robust. However, setting this up can cause headaches if you don't read through our guide to understanding how to tamper with System specific IP addresses.

Was This Page Helpful?

change ip address windows 7 cmd

Updated by Daisy 

Daisy is the Senior editor of the writing team for EaseUS. She has been working at EaseUS for over ten years, starting as a technical writer and moving on to being a team leader of the content group. As a professional author for over ten years, she writes a lot to help people overcome their tech troubles.

Read full bio

Related Articles

[2024 Guide] macOS High Sierra Download and Install

author icon

How to Fix PS4 Error Code CE-37857-0 [100% Working Solutions]

author icon

How to Factory Reset Xbox One | Detailed Guide for Xbox One Users

author icon

[2024 Fixes] How to Fix Your Computer Was Unable to Start

author icon

EaseUS Data Recovery Services

Request a free evaluation >>

EaseUS data recovery experts have uneaqualed expertise to repair disks/systems and salvage data from all devices like RAID, HDD, SSD, USB, etc.

change ip address windows 7 cmd

Copyright ©   EaseUS. All rights reserved.

change ip address windows 7 cmd

Top Contributors in Windows 7: Bill Smithers  -  LemP  -  Canadian Tech   ✅

February 14, 2024

Top Contributors in Windows 7:

Bill Smithers  -  LemP  -  Canadian Tech   ✅

  • Search the community and support articles
  • Search Community member

Ask a new question

Change preferred IP address Windows 7

Report abuse, replies (2) .

franco d'esaro

  • Volunteer Moderator |
  • Article Author

Was this reply helpful? Yes No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

Thanks for your feedback.

LemP

  • Volunteer Moderator

When a device is configured to obtain an IP address automatically but the device does not receive an IP address from a DHCP server (usually because the device is not properly authenticated to the network), Windows uses Automatic Private IP Addressing (APIPA) to assign IP addresses of the form 169.254.x.y.

Please do the following:

Open a Command Prompt window (type Command Prompt in the Search box and press Enter)

  • In the black Command Prompt window, type the following and press Enter after each line

ipconfig /all > "%userprofile%\Desktop\ipinfo.txt"

notepad "%userprofile%\Desktop\ipinfo.txt"

  • In the open Notepad window, click Edit > Select All (or press CTRL+A) then click Edit > Copy (or press Ctrl+C)
  • In the body of your Question, Right-click > Paste (or press CTRL+V) the data from the Notepad window
  • Close Notepad and delete ipinfo.txt from your Desktop

How are you assigning the IP address of 10.10.10.10 to your CNC controller?

Do you get a Properties dialog box like this:

change ip address windows 7 cmd

Question Info

  • Network and internet
  • Norsk Bokmål
  • Ελληνικά
  • Русский
  • עברית
  • العربية
  • ไทย
  • 한국어
  • 中文(简体)
  • 中文(繁體)
  • 日本語

Home › Privacy basics › How to change your IP address on Windows

How to change your IP address on Windows

Posted on November 16th, 2023 by Douglas Crawford in Privacy basics .

change ip address windows 7 cmd

This artcile was updated and refreshed November 2023 .

We discuss how to change the IP address of your Windows 10 or Windows 11 device. This doesn’t change your IP address on the internet, although we’ll look at that as well. 

Changing your IP address on Windows

How to change your external ip address on windows, how to hide your external ip on windows using proton vpn, change your windows ip address using a vpn router, how to change your local ip address on windows, why change your local ip address on windows.

  • Local IPv4 vs. IPv6 addresses
  • How to change your IP address on Windows 10
  • How to change your IP address on Windows 11

Frequently asked questions

An IP address uniquely identifies every device connected directly to a network. Networks can be large or small. Large networks are known as wide area networks (WANs), the most notable example being the internet. 

Local area networks (LANs) are small networks that connect devices within a limited area, such as a home, office, or school. Devices connected to a local area network usually connect to the internet via a router and modem. 

Learn more about IP addresses

In this article, we look both at how to change your Windows device’s external IP address that websites, P2P peers, and apps see and also how to change its local IP address that other devices on your local area network use to identify it. 

Your external IP address is the IP address you use to connect to the internet. It’s the IP address that anyone on the internet sees, including websites, P2P peers, and the backend servers that your apps connect to. Your external IP address is assigned to you by your internet service provider (ISP).

change ip address windows 7 cmd

Most Windows devices connect indirectly to the internet via a WiFi or wired Ethernet connection to a router. The router then connects to a modem (these two are often combined into the same device), which connects to the internet.

In this scenario, your Windows PC’s external IP address that anyone on the internet can see is actually your router’sIP address. All devices that connect to the internet via that router will share the same external IP address (unless you somehow hide your IP address).  

There are several ways to hide your Windows device’s IP address when using the internet, including:

  • Tor browser
  • Proxy servers
  • A virtual private network (VPN)

All of these methods route your internet connection to another computer so that you appear to access the internet from that computer’s IP address (in the case of Tor, your connection is routed through a series of “nodes”, so you appear to access the internet from the last “exit node” in the chain). This is known as proxying your connection. 

Of these ways to proxy your connection, the most effective, useful, and convenient method is to use a commercial VPN service such as Proton VPN . We are a 100% free VPN service with no logs , no data restrictions , and no artificial speed limits . 

We offer this free service because we believe privacy is a fundamental human right that should be available to everyone. If you want to support our mission and access a range of premium features, such as NetShield Ad-blocker , more than 3,000 servers in more than 65 countries, the ability to stream content from around the world, and more , you can sign up for a premium plan .

1 Sign up for a free Proton VPN account .

2. Download the Proton VPN Windows app

3. Open Windows Explorer , go to your Downloads folder, and double-click the ProtonVPN_win_vxxx.exe installation file you just downloaded.

Download the Proton VPN EXE file

  • If a new window pops up asking Do you want to allow this app to make changes to your device? , click Yes.
  • If installing for the first time, the OpenVPN TAP adapter installation windows will appear. Click Next . 
  • The Windows .NET framework might also be required. If prompted, follow the instructions to install Windows .NET as well.

4. Select your preferred setup language, click Next , and follow the wizard to install the app onto your Windows system. 

Run the install wizard

5. Open the app and sign in using your Proton Account login details. 

Sign in to the Proton VPN app

6. Click Quick Connect to let the app pick the best server for your location. 

Quick Connect

Alternatively, you can manually choose a country or server to connect to. If you are on our Free plan, you can connect to servers in Japan, the Netherlands, and the United States. If you are on one of our premium plans, you can connect to one of over 1700 servers in over 60 countries. 

Manually select server

Your real IP address is now hidden so that it cannot be seen by websites, P2P peers, or other observers on the internet. 

Learn more about VPNs

To make sure your IP address changed, visit a website such as ip.me with and without the VPN connection. 

Check your external IP address

Another way to change the external IP address of your Windows PC is to connect it to a VPN router. This is a router configured to route all devices connected to the internet through it (including Windows devices) through a VPN service such as Proton VPN.

Learn how to configure Proton VPN on your router

Your local IP address is the IP address that your Windows device uses on your local area network (LAN). Your router uses it to send incoming data to the correct device, and other devices on the same local network can see your device’s local IP address. 

A common type of LAN is the home network, where all your household’s laptops, smartphones, tablets, smart devices, games consoles, smart TVs, and other internet-capable devices connect to the internet via a router and modem supplied by your internet service provider (ISP). 

Diagram showing how a LAN network works

Devices connected to a LAN do not connect directly to the internet, so no one on the internet can see their IP addresses. They see your modem’s IP address (unless it’s proxied — see above).

Below, we look at how to change your local IP address on Windows 10 and Windows 11. This changes your devices’ IP address on your LAN but doesn’t affect the IP address seen on the internet because that’s your modem’s IP address. 

By default, most routers dynamically assign IP addresses to devices on a local network using the Dynamic Host Configuration Protocol (DHCP) . 

This means the IP address to your Windows PC may change depending on your network configuration (for example, when you take your Windows laptop out of the house and then return with it).

If other devices on your network access your Windows PC via its IP address, it’s a good idea to configure a static IP for it that your router will not change. For example, this would be useful if you use your Windows device as a media or LAN games server.

Local IPv4 vs IPv6 addresses

Windows 10, Windows 11, and most modern routers can use IPv6. Globally, Internet Protocol version 4 (IPv4) addresses are running out. To solve this problem, the much longer Internet Protocol version 6 (IPv6) address system is being rolled out, which vastly increases the number of addresses available.

However, the local IP addresses issued by your router are for private use only and are not affected by the IPv4 global shortage. So while it is possible to configure your Windows device to use an IPv6 address, there’s little point in doing so. 

Learn more about IPv4 vs. IPv6

How to change your local IP address on Windows 10

1. Go to Start → Settings

Go to Settings

2. Select Network & Internet  

Select Network & Internet 

3. Select your internet connection ( WiFi or Ethernet ) and click on Properties .

Go your connection properties

4. Go to IP settings → IP assignment → Edit .

Edit IP settings

5. Click Automatic (DHCP) and select Manual from the dropdown menu.

Manually edit IP settings

6. Toggle the IPv4 switch on . 

Toggle the IPv4 on

7. Fill in the IP settings.

  • IP address — This can be any numeric value in the 192.168.0.0 – 192.168.255.255 IP address range.
  • Subnet prefix length — 24
  • Gateway — Enter the IP address of the router or modem your PC is connected to. This is usually either 192.168.0.1 or 192.168.1.1
  • Preferred DNS — Enter the IP address of a DNS server or DNS service (for example, 9.9.9.9 for Quad9).

Fill in the IP settings

Click Save when you’re done. 

8. You’ve successfully changed your IP address.

Your IP address has now changed

How to change your local IP address on Windows 11

1. Open the Settings app.

Open Settings

2. Go to Network & internet and select your network interface ( Ethernet or WiFi ).

Select your network interface

3. If you have an Ethernet connection, click on IP assignment → Edit .

Edit IP assignment Ethernet

If you have a WiFi connection, click Hardware properties …

Go to hardware properties

Followed by IP assignmen t → Edit .

Edit IP assignment WiFi

4. Click Automatic (DHCP) and select Manual from the dropdown menu.

Manually edit IP settings

5. Toggle the IPv4 switch On . 

Toggle IPv4 on

6. Fill in the IP settings.

  • IP address — This can be any numeric value in the 1 92.168.0.0 – 192.168.255.255 IP address range.
  • Subnet mask — If you know your subnet mask address, enter it. If not, enter 255.255.255.0 .
  • Gateway — Enter the IP address of the router or modem your PC is connected to. This is usually either 192.168.0.1 or 192.168.1.1 .
  • Preferred DNS — Enter the IP address of a DNS server or DNS service (for example, 9.9.9.9)
  • Preferred DNS encryption — Choose the level of DNS encryption you prefer (if DNS server supports it).

Fill in the IP settings

7. You’ve successfully changed your IP address.

Your IP address has now changed

Troubleshooting

If you can no longer connect to the internet after making these changes, there are two possible reasons:

1. Two or more devices on your network have the same IP address

Check the IP addresses of all devices on your network and manually change any that have the same IP address using the instructions above.

2. Incorrect subnet mask

To find the name of your network’s subnet mask, Open the Command Prompt ap or Windows PowerShell app and enter the following command:

Look for the Subnet Mask entry under your Ethernet or Wireless LAN adapter Wi-Fi connection.

How to find your subnet mask settings

To change the external IP address of your laptop or PC that anyone on the internet sees, you’ll need to use an external service such as Tor or Proton VPN.  Learn more about what a VPN is Proton VPN offers apps for Windows , macOS , Linux , and Chrome OS (via our Android app ). If you’re not sure what operating system (the software that underpins how all your apps can run and work together and allows you to interact with your apps) you’re using, then it’s most likely Windows.  This guide also shows you how to change the local IP address on Windows 10 and Windows 11 PCs and laptops. This only changes the IP address of your computer on your local network. 

When configuring the IP address on most devices (including Windows 11 devices), you’ll be asked to enter the subnet mask (which in most cases will be 255.255.255.0). On Windows 10, however, you’ll be asked to enter the subnet prefix length instead. A subnet mask of 255.255.255.0 translates into a subnet prefix length of 24 bits, so in most cases, you should enter 24. If your subnet mask is not 255.255.255.0, you can use a subnet calculator to determine the correct subnet prefix length for your subnet mask.

'  data-srcset=

Douglas Crawford

Starting with ProPrivacy and now Proton, Douglas has worked for many years as a technology writer. During this time, he has established himself as a thought leader specializing in online privacy. He has been quoted by the BBC News, national newspapers such as The Independent, The Telegraph, and The Daily Mail, and by international technology publications such as Ars Technica, CNET, and LinuxInsider. Douglas was invited by the EFF to help host a livestream session in support of net neutrality. At Proton, Douglas continues to explore his passion for privacy and all things VPN.

Back to Blog

Secure your internet

  • All about AI
  • Google Bard
  • Inflection AI Pi Chatbot
  • Anthropic Claude
  • Generative AI
  • AI Image Generation
  • AI Regulation
  • AI Research
  • Large Language Models (LLM)
  • Surface Pro
  • Surface Laptop
  • Surface Book
  • Surface Duo
  • Surface Neo
  • Surface Studio
  • Surface Hub
  • Surface Pen
  • Surface Headphones
  • Surface Earbuds
  • About WinBuzzer
  • Follow Us: PUSH, Feeds, Social
  • Write for Us
  • Cookie Policy and Privacy Policy
  • Terms of Service

How to Change Your IP Address on Windows 10 (3 Methods)

We show you how to change your IP address in Windows 10 using the Settings app, Control Panel, and Command Prompt.

Featured - 3 ways to change the IP address in Windows 10

  • 1 How to Change IP Address in Windows 10 via Settings
  • 2 How to Change your Windows 10 IP Address in Control Panel
  • 3 How to Change IP in CMD (Command Prompt)

IP addresses are one of the primary ways services identify a user. Though your IP address may change automatically from time to time, if you've been assigned the wrong IP by your router or want something more static, you need to know how to change your IP address on Windows 10 manually.

What is an IP address?

An IP address is a series of numbers that identifies your device and therefore allows information to be sent between devices. Without IP addresses, computers on the internet and your local network would not be able to differentiate between different devices, routers, websites, etc.

However, IP addresses also come with some downsides. For starters, somebody may be able to use your IP address to get a general idea of your location. Services may also utilize your IP address to track you across the web.

Unfortunately, changing your IP address will with the methods outlined below will not disguise your location. As the IP address will still be connected to your ISP, it can still be traced to their nearest networking hub. It will also not help if you have been banned by a service – you're only changing the IP address on your local network, not the one the internet sees. For that kind of protection, you should consider using Tor or a VPN.

That said, if you do want to change IP address on Windows 10, you'll need to have access to your administrator account. If you do have access, you can learn how to change IP by following the steps below:

How to Change IP Address in Windows 10 via Settings

Unsurprisingly, the simplest way to change your IP address in Windows 10 is via the in-built settings app, but there are a few things you need to look out for when it comes to choosing your new IP:

Press the Start button, then click the settings cog, above the power button. Alternatively, press Windows + I .

Windows 10 - Open Settings

If your IP address is currently set manually and you're running into issues, you can change the dropdown in “Edit network IP settings” to “Automatic (DHCP)” and press “Save” .

Windows 10 - Settings - Network & Internet - Wifi - Edit IP Assignment - Automatic

When you change your IP address, it's important to make sure the information you enter is correct. Before you start, it's useful to gather:

– Your current IP address – Your subnet mask – Your gateway (router IP)

If you don't know these details, you can run the ipconfig command in Command Prompt to obtain them.

Ideally, your new IP address should be of the same format as your old one. For example, if your current IP address is 10.0.0.1, you'll probably want to keep the 10.0.0.x format. Make sure you don't set your IP to the same as your gateway or other devices on your network.

Once you're done, press “Save” .

Windows 10 - Settings - Network & Internet - Wifi - Edit IP Assignment - Manual - Fill it

How to Change your Windows 10 IP Address in Control Panel

If you prefer the old-school way of doing things, the Control Panel may be better suited to you. In some ways, its interface is easier to navigate when it comes to IP editing. Here's how you can use it for that purpose:

Press Start and then type “Control Panel” . Click the top result.

Windows 10 - Open Control Panel

At this point, you'll likely have to authenticate yourself as an administrator.

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties

If your IP address is currently manually assigned and you're running into issues, you can tick “Obtain an IP address automatically” here instead and click “Save” .

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties - Check Internet Protocol Version 4 - IP Automatically

Once you're done, press “OK” . You can leave the DNS fields blank, though it's worth noting that there are advantages to changing them.

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties - Check Internet Protocol Version 4 - IP Manual

How to Change IP in CMD (Command Prompt)

The command-line is often the fastest way to get things done, and this is no exception. You can change your IP in Command Prompt in under a minute if you need to. Here's how:

Press Start and type “Command Prompt” , then click “Run as administrator” on the right-hand side.

Windows 10 - Open Elevated Command Prompt

Before you change your IP, you need to know the name of your interface. This will likely be “Wi-Fi” if you're on a Wi-Fi network or “Ethernet” if you're on Ethernet.

You can check yours with netsh interface IP show config . While you're there, note down its default gateway and subnet mask.

Windows 10 - Elevated Command Prompt - Enter the Command - Identify the Network Adapter

If you set your manual IP previously, you can revert it to automatic assignment via DHCP with the following command:

Remember to replace “Wi-Fi” with whatever your interface is called.

Windows 10 - Elevated Command Prompt - Command for Dinamic IP

If you'd rather set your IP address manually, you can instead use the following command:

Windows 10 - Elevated Command Prompt - Command for Static IP

Now that you know how to change your IP address on Windows 10, you may be interested in learning more about your network. Here's how you can change your network name or disable a Wi-Fi or Ethernet adapter .

  • Change IP address
  • how to change ip address on pc
  • how to change ip address on windows 10
  • how to find ip address windows 10
  • windows 10 change ip address

Recent News

change ip address windows 7 cmd

Microsoft Edge Releases Patch for Data Import Glitch Amidst Unauthorized Data...

change ip address windows 7 cmd

Microsoft Announces Retirement of Azure IoT Central Service by 2027

change ip address windows 7 cmd

Microsoft Loop Enhances User Experience with Figma Integration

change ip address windows 7 cmd

Microsoft 365 Announces End of Life for Publisher by 2026

Subscribe to WinBuzzer on Google News

change ip address windows 7 cmd

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

How to change IP address using script on Windows?

I need fixed IP in three wireless networks I log in frequently.

It is a pain to set those IP and gateway everytime I change networks.

I am willing to write a script to change my IP and gateway between those 3 fixed IPs and a choice to make it get IP automatically (when I´m in another network).

A plus feature to my script would be if it could discover the wireless network I am logged in and decide the IP automatically.

Is it even possible?

Diogo's user avatar

  • possible duplicate of How can I switch between multiple sets of network configurations on Windows XP? –  Breakthrough Nov 24, 2011 at 12:43

5 Answers 5

ipconfig /renew to get a new IP address or default gateway The NETSH command does this. check this .

See this example for setting DNS address manually via netsh command:

configure your NIC to dynamically obtain its DNS settings ( * Obtain DNS server address automatically ):

and to set the * Obtain an IP address automatically setting:

More info: read this Configure TCP/IP from the Command Prompt and How to change IP address from command prompt .

This is assuming 3 things.

1) The network adapter you're trying to change the IP for is "local area connection". It could also be "local area connection 2" or "wireless network connection". Look in your control panel for the correct name.

2) The IP you want to set is 192.168.0.101, change this to whatever IP to want to use.

3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all

Here is example of batch file that I have created for your problem solutions: just change the command after the con1: type labels

How to create batch file: paste this code in notepad and save it as "test.bat"

Note: Change your connection names "local area connection" to your "wireless connection" name

Hope this help you.. for more reference check this Set Your IP Address Via Batch File

David d C e Freitas's user avatar

  • I get Adapter is not enabled for DHCP when trying ipconfig /renew "Wireless Network Connection" –  Hrvoje T Mar 28, 2018 at 8:10
  • I used this netsh interface ip set address "Wireless Network Connection" dhcp and this for auto dns netsh interface ip set dns "Wireless Network Connection" dhcp –  Hrvoje T Mar 28, 2018 at 8:26
  • 1 To set dns manualy, I had to use netsh interface ipv4 add dnsserver "Wireless Network Connection" address=8.8.8.8 index=1 from here stackoverflow.com/questions/18620173/… –  Hrvoje T Mar 28, 2018 at 9:10

You can make a .bat script file that contains the configuration commands based on "netsh" command, for example :

This changes the IP address and Default Gateway: "netsh int ip set address "local area connection" static {192.168.0.101} 255.255.255.0 {192.168.0.254} 1" This changes DNS: "netsh int ip set dns "local area connection" static {192.168.0.254} primary"

Community's user avatar

I know this is very old thread but still it can be useful to many like me.

As per the op asked for WiFi, I have created a batch script for Wi-Fi. It will fetch current Wi-Fi connected and based on that set Static IP or DHCP.

Here is the script -

You should save this a batch file and run that batch file as %% in for command will not work in command prompt.

TIP: You can also add this in Task Scheduler with Trigger as below and Action with above batch path

In Windows 10 & 11, you can set the IP configuration as well as DHCP / Static settings for each Saved WiFi network also.

Sachin's user avatar

Run this on CMD as admin:

back to dhcp:

"Local Area Connection" can be different in your case

Toto's user avatar

in this cmd how to set dns netsh interface ip set address name = "Local Area Connection" static 192.168.1.1 255.255.255.0

vijaiprabu's user avatar

  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center . –  Community Bot Nov 23, 2021 at 10:08

You must log in to answer this question.

Not the answer you're looking for browse other questions tagged windows-7 ..

  • The Overflow Blog
  • Down the rabbit hole in the Stack Exchange network
  • Featured on Meta
  • Upcoming privacy updates: removal of the Activity data section and Google...
  • Changing how community leadership works on Stack Exchange: a proposal and...

Hot Network Questions

  • Book set in a New Zealand or Australian future society where the rich and poor live separately. Includes a character named Billy, short for Billy Goat
  • How to select a boundary edge and generate an outline
  • Can a decimal that is infinitely repeating in one base be nonrepeating in another?
  • Why did nobody ever succeed in "clean room" cloning the Apple Macintosh
  • Finding integer solutions for a logarithmic equation with constraints
  • Kitchen sink slow drainage and P-Trap installation
  • Why did Jesus choose to perform his first miracle at the wedding in Cana by turning water into wine?
  • How would the "Hardness vs Toughness" dynamic of gems apply if it were possible to make shields out of them?
  • Is there any ethical problem with a tiered grading system?
  • Could the bassist and the rhythm guitarist be the same person?
  • Which source shows the Gamorrahs for each pasuk in the Chumash?
  • How do you make nice recess in a melamine board for IKEA shelf holders?
  • 1990s/2000s live-action show with kids in tribes in a dystopian sci-fi/fantasy setting
  • Why did PC users need partitions in the 1980's
  • Integrate has issues when integrating the general form of a trigonometric integral but not specific instances
  • Is the realization of random variable also a random variable?
  • A set of rotated/reflected L-shapes
  • Magic: the Gathering – Scry-sort
  • Visualizing the reverse pyramid in a good way
  • Could relativity be consistent if there are multiple light-like fields with different invariant speeds?
  • How do I write a sexist narrator without coming off as sexist myself?
  • Newbie: How to identify a chip on a board, what is the best strategy?
  • What is the Chinese equivalent of "a few loose screws"?
  • Who to consult about variety of issues? A home inspector or a contractor?

change ip address windows 7 cmd

IMAGES

  1. how to configure ip address in windows 7 in command prompt

    change ip address windows 7 cmd

  2. How to Change IP Address in Command Prompt (Renew IP)

    change ip address windows 7 cmd

  3. How to Change IP Address in Windows 7

    change ip address windows 7 cmd

  4. How to Change IP Address in Windows 7

    change ip address windows 7 cmd

  5. How To Change & Configure An IP Address or Set to DHCP, Using The

    change ip address windows 7 cmd

  6. How to change ip address on windows 7 computer

    change ip address windows 7 cmd

VIDEO

  1. How To Change IP Address

  2. Set IP & Change Computer Name Windows Server 2008 R2 (3-12)

  3. How To Find Your IP Address On Windows 7

  4. How to find IP address in windows7

  5. ✅ How to Manually Change my IP Address, Default Gateway and DNS Server Address in Windows in Hindi

  6. How to change IP address on Windows 10 PC (and Windows 7)

COMMENTS

  1. How to Change Your IP Address From the Command Prompt in Windows

    View Your Network Information with Command Prompt Before you change your IP address and related information, you'll need to find the full name of the network for the interface you want to change. To do this, type the following command: netsh interface ipv4 show config Scroll down until you see the interface you're looking for.

  2. Changing the preferred IP address in windows 7

    To do this open Command prompt and type ipconfig and press enter. This will display the IP address, make a note of it. To assign the IP address and default gateway manually, follow the steps below: a) In system tray, right click network icon. Choose Open Network and Sharing Center. b) Right click on Local Area Connection and click on Properties.

  3. How to Change IP Address in Command Prompt (Renew IP)

    Right-click on the Command Prompt and select the " Run as administrator " option. Execute the below command to get the network interface name. netsh interface ipv4 show config If you have multiple network interfaces, note down the interface name for which you want to change the IP address.

  4. How To Change & Configure An IP Address or Set to DHCP, Using The

    Not many users are aware that Windows 7 provides more than one way to configure a workstation's network adaptor IP address or force it to obtain an IP address from a DHCP server.While the most popular method is configuring the properties of your network adaptor via the Network and Sharing Center, the less popular and unknown way for most users is using the netsh Command Prompt.

  5. How to change the IP address in Windows 10 and Windows 11 (4 ways)

    1. How to change the IP address in Windows 10 using the Settings app 2. How to change the IP address in Windows 11 using the Settings app 3. How to change the IP address in Windows using the Control Panel 4. How to change the IP address in Windows 10 and Windows 11 using commands How do you change the IP address in Windows 10 or Windows 11?

  6. How to Change Your IP Address (Windows)

    Download Article 1 Unplug your router and modem. Most service providers assign dynamic IPs, which change from time to time. By disconnecting your modem for a long period of time, you are likely to get a new address assigned to you when you turn it back on. You may want to check your current IP address before doing this.

  7. Change IP Address and DNS Servers using the Command Prompt

    To change the IP address, type this command: netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY In our example, this command would look like this: netsh interface ipv4 set address name="Wi-Fi" static 192.168..173 255.255.255. 192.168..

  8. windows

    Follow the steps below to change your ip address: Click Start -> Control Panel. Left click on Network and Internet and then choose Network and Sharing Center. On the left side choose Change adapter settings. Right click on your network card and from the drop-down choose Properties. Under the Networking tab.

  9. How to View & Change Your IP Address in Windows 7, 8, and 10

    In Windows, you can easily view your IP address by typing cmd into the Start Menu to open a command prompt, then typing ipconfig. This will bring up configuration info for all network adapters on your machine (such as Ethernet and wireless), letting you view the IP address and more for each one. On a network, you can release this IP address and ...

  10. windows 7

    1 Answer. Assuming you are using DHCP, your computer will be assigned an IP address from a pool of addresses. Generally, if you request a new address before the lease time is up, you will get the same address back. So you will have to login to your router (most of them have a web interface, look at the manual) and change the IP that is assigned ...

  11. How to Change Your IP Address

    The simplest way to change your IP address is to power off your router, wait at least 10 seconds, then power it back on. If that doesn't fix your problem, you may want to set a static IP address instead. Changing your IP address is a simple fix for a number of networking issues. However, there's more than one way to cook that particular egg.

  12. Change TCP/IP settings

    To enable DHCP or change other TCP/IP settings. Select Start, then type settings. Select Settings > Network & internet. Do one of the following: For a Wi-Fi network, select Wi-Fi > Manage known networks. Choose the network for which you want to change the settings. For an Ethernet network, select Ethernet, then select the Ethernet network you ...

  13. Fast way to change IP address on Windows

    Fast way to change IP address on Windows. Ask Question Asked 12 years, 11 months ago. Modified 12 years, 11 months ago. Viewed 2k times 1 OS: WinXP, Win7. Is there any command line to change IP address/gateway IP/DNS easily? Either command to change directly or command to bring up this window (see below)? Thanks. networking; windows-7;

  14. How to Change Your IP Address on Computer

    Then press Enter. A black screen comes up. Step 2. Type 'ipconfig', then press Enter to check the current IP address of your computer. Step 3. Type 'Netsh' to assign an IP to your computer and press Enter. Then enter 'Interface IP' to change the console from 'netsh>' to 'netsh interface ipv4'. Step 4.

  15. Release and renew an IP address

    A command prompt window will open. At the flashing cursor, type ipconfig /release. This will release your IP address. Type ipconfig /renew to get a new IP address. Type exit to exit the command prompt. A restart may be required to complete the process. Macintosh OS X

  16. networking

    1 Fire up a VM or another box and set that to statically take over that IP?

  17. Change preferred IP address Windows 7

    When a device is configured to obtain an IP address automatically but the device does not receive an IP address from a DHCP server (usually because the device is not properly authenticated to the network), Windows uses Automatic Private IP Addressing (APIPA) to assign IP addresses of the form 169.254.x.y.. Please do the following: Open a Command Prompt window (type Command Prompt in the Search ...

  18. How to change your IP address on Windows

    Gateway — Enter the IP address of the router or modem your PC is connected to. This is usually either 192.168..1 or 192.168.1.1. Preferred DNS — Enter the IP address of a DNS server or DNS service (for example, 9.9.9.9 for Quad9). Click Save when you're done.

  19. windows 7

    3 Answers Sorted by: 28 netsh.exe netsh interface ip set dns name="Local Area Connection" source=static addr=none netsh interface ip add dns name="Local Area Connection" addr=8.8.4.4 index=1 netsh interface ip add dns name="Local Area Connection" addr=8.8.8.8 index=2 netsh interface ip set dns name="Local Area Connection" source=dhcp Share

  20. How to Change Your IP Address on Windows 10 (3 Methods)

    WinBuzzer Tips How to Change Your IP Address on Windows 10 (3 Methods) We show you how to change your IP address in Windows 10 using the Settings app, Control Panel, and Command...

  21. How to change IP address using script on Windows?

    5 Answers Sorted by: 15 ipconfig /renew to get a new IP address or default gateway The NETSH command does this. check this. See this example for setting DNS address manually via netsh command: netsh interface ip set dns "Local Area Connection" static 192.168..200

  22. Changing IP address via command line on Windows XP

    The problem that the IP doesn't change (checked by ipconfig) but doesn't not changed on the DHCP. Thus when I restart the machine, the IP is returned to DHCP. Thus when I restart the machine, the IP is returned to DHCP.