- Awards Season
- Big Stories
- Pop Culture
- Video Games
The Benefits of Tracking an IP Address Location
In today’s digital age, tracking an IP address location has become an important tool for businesses and individuals alike. An IP address is a unique numerical identifier assigned to each device connected to the internet. By tracking an IP address location, businesses can gain valuable insights into their customers’ online behavior and preferences. Individuals can also use this information to protect their online privacy and security. Here are some of the key benefits of tracking an IP address location:
One of the main benefits of tracking an IP address location is enhanced security. By knowing where a device is located, businesses can better protect their networks from malicious activity. Additionally, individuals can use this information to identify suspicious activity on their own devices or networks. This can help them take steps to protect their data and privacy from potential threats.
Better Targeting of Ads and Content
Another benefit of tracking an IP address location is that it allows businesses to better target ads and content to their customers. By knowing where a customer is located, businesses can tailor their marketing messages to be more relevant to that customer’s needs and interests. This helps them increase engagement with potential customers and boost sales.
Improved Customer Insights
Finally, tracking an IP address location can provide businesses with valuable insights into their customers’ behavior and preferences. By analyzing the data collected from IP addresses, businesses can gain a better understanding of who their customers are and what they are looking for in terms of products or services. This helps them tailor their offerings accordingly and improve customer satisfaction levels.
Overall, tracking an IP address location provides numerous benefits for both businesses and individuals alike. From enhanced security to improved customer insights, this tool can help organizations better understand their customers’ needs and preferences in order to provide more targeted content and services.
This text was generated using a large language model, and select text has been reviewed and moderated for purposes such as readability.
MORE FROM ASK.COM
How to change your ip address from the command prompt in windows.
It's easy enough to change an IP address on your PC using Control Panel, but did you know you can also do it from the Command Prompt?
Launch command prompt as admin to use netsh, view your network information with command prompt, change your ip address, subnet mask, and default gateway, change your dns settings in command prompt, key takeaways.
- You must launch Command Prompt, PowerShell, or Terminal as admin to use netsh.
- Use the "netsh interface ipv4 show config" command to find the full name of the network interface you want to change.
- Modify your IP address, subnet mask, and default gateway using the command "netsh interface ipv4 set address". You can also change DNS settings using "netsh interface ipv4 set dns".
Changing your IP address with the Control Panel interface isn't difficult, but it does require clicking through a number of different windows and dialog boxes. If you're a fan of the Command Prompt, though, you can get it done more quickly using the netsh command, which is just one of the great network utilities built into Windows .
We're going to use the netsh command, but it requires that Command Prompt be launched as administrator to work. The netsh command allows you to configure just about any aspect of your network connections in Windows.
To launch Command Prompt (or PowerShell) as Admin, open up the Start Menu, search "cmd," hover over the result, then click "Run as Administrator."
In Windows 10 or Windows 11, you can also right-click the Start menu (or press Windows+X on your keyboard) to open the Power User Menu and choose "PowerShell (Admin)."
You can (and should ) use PowerShell for this instead.
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. In our example, we're going to modify the Wi-Fi interface, which on our machine is just named "Wi-Fi." You'll also see other default names that Windows assigns to interfaces, such as "Local Area Connection," "Local Area Connection* 2," and "Ethernet." Just find the one you're looking for and make note of the exact name. You can also copy and paste the name to Notepad and then back into Command Prompt later to make things easier.
With the interface name in hand, you're ready to change the IP Address, subnet mask, and gateway. To do this, you'll issue a command using the following syntax:
netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY
So, for example, your command might look something like the following:
netsh interface ipv4 set address name="Wi-Fi" static 192.168.3.8 255.255.255.0 192.168.3.1
Where the info is replaced by whatever you want to use. In our example, the command does the following:
- Uses the interface name "Wi-Fi"
- Sets the IP address to 192.168.3.1
- Sets the subnet mask to 255.255.255.0
- Sets the default gateway to 192.168.3.1
And if you're using a static IP address but want to switch to using an IP address assigned automatically by a DHCP server — such as your router — you can use the following command instead:
netsh interface ipv4 set address name="YOUR INTERFACE NAME" source=dhcp
You can also use the netsh command to change the DNS servers used by a network interface. Third-party DNS servers — like Google Public DNS and OpenDNS —can be faster and more reliable than the DNS servers provided by your ISP. Whatever your reason for changing your DNS server , you can do it either at the router so it affects all the devices that get their information from the router or at the individual device. If you want to change the DNS servers for just one PC, it's easy to do with the netsh command.
You'll need to use the command twice: once to set your primary DNS server and once to set your secondary, or backup, DNS server. To set your primary DNS server, use the following syntax:
netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER
So, for example, your command might look something like the following (in which we set it to Google's primary public DNS server, 126.96.36.199):
netsh interface ipv4 set dns name="Wi-Fi" static 188.8.131.52
To set your secondary DNS server, you'll use a very similar command:
netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER index=2
So, continuing our example, you might set your secondary DNS as the Google Public DNS secondary server, which is 184.108.40.206:
netsh interface ipv4 set dns name="Wi-Fi" static 220.127.116.11 index=2
And just like with the IP address, you can also change it so that the network interface grabs its DNS settings automatically from a DHCP server instead. Just use the following command:
netsh interface ipv4 set dnsservers name"YOUR INTERFACE NAME" source=dhcp
And there you have it. Whether you like typing at the command prompt better or just want to impress your coworkers, now you know all the command line magic you need for changing your IP address settings.
How to set static IP address on Windows 10
You can assign a static IP address manually on Windows 10 in many ways, and in this guide, you'll learn how.
- To set a static IP address on Windows 10, open Settings > Network & Internet > Wi-Fi .
- Then click the connection, click on “Edit,” select “Manual,” turn on “IPv4,” and set the static IP address.
- Alternatively, you can configure a static IP address from Command Prompt, PowerShell, and Control Panel.
On Windows 10, setting a static IP address to a computer is a configuration you may need to set up in many scenarios. For instance, if you plan to share files , a printer on a local network , or configure port forwarding.
If you don’t assign a static IP address, services or a port forwarding configuration may eventually stop working. The reason is that, by default, connected devices use dynamic IP addresses assigned by the Dynamic Host Configuration Protocol (DHCP) server (usually the router), which can change anytime, as soon as you restart the machine or after the dynamically assigned configuration lease expires.
This guide will teach you the steps to set a static IP (version 4) address to a Windows 10 device when providing a service on the network or simply configuring port forwarding to your device on the router.
Set static IP address on Windows 10
Set static ip address on windows 10 from control panel.
- Set static IP address on Windows 10 from Command Prompt
- Set static IP address on Windows 10 from PowerShell
To assign a static IP address on Windows 10, use these steps:
Open Settings on Windows 10.
Click on Network & Internet .
Click on “Wi-Fi” or “Ethernet.”
Click on the current network connection.
Under the “IP settings” section, click the Edit button.
Using the drop-down menu, select the Manual option.
Turn on the “IPv4” toggle switch.
Set a static IP address to use by the Windows 10 computer.
Specify a “Subnet prefix length” (subnet mask). If the subnet mask is 255.255.255.0 , the subnet prefix length in bits is 24 .
Specify a “Default Gateway” address.
Specify a “Preferred DNS” address.
Specify an “Alternate DNS address” (if applicable).
Click the Save button.
After you complete the steps, you can test your settings using your web browser to open a website.
To assign a static IP from Control Panel on Windows 10, use these steps:
Open Control Panel .
Click on Network and Internet .
Click on Network and Sharing Center .
Click the Change adapter settings option on the left navigation pane.
Right-click the network adapter and select the Properties option.
Select the “Internet Protocol Version 4 (TCP/IPv4)” option.
Click the Properties button.
Select the Use the following IP address option.
Assign the static IP address – for example, 10.1.2.220 .
Specify a Subnet mask . Typically, on a home network, the subnet mask is 255.255.255.0 .
Specify a Default gateway . (Usually, your router’s IP address. For example, 10.1.2.1 .)
Under the “Use the following DNS server addresses set Preferred DNS server” section, set the Preferred DNS server address , usually your router’s IP address or server IP address providing DNS resolutions (for example, 10.1.2.1 ).
(Optional) Specify an Alternative DNS server , which the computer will use if it cannot reach the preferred DNS server.
Click the OK button.
Click the Close button again.
Once you complete the steps, you can open your web browser and load a website to see if the configuration works.
Set static IP address on Windows 10 from Command Prompt
To set a static IP address on Windows 10 from Command Prompt, use these steps:
Open Start on Windows 10.
Search for Command Prompt , right-click the top result, and select the Run as administrator option.
Type the following command to see your current networking configuration and press Enter :
Under the network adapter, note the name of the adapter as well as the following information in these fields:
- Subnet mask
- Default Gateway
- DNS Servers
Type the following command to assign a static IP address on Windows 10 and press Enter :
In the above command, replace Ethernet0 with the name of your network adapter. Change 10.1.4.220 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to your network configuration.
Type the following command to set a DNS server address and press Enter :
In the command, make sure to change Ethernet0 with your adapter’s name and 10.1.4.1 with the DNS server address of the network.
Type the following command to set an alternate DNS server address and press Enter :
In the command, replace Ethernet0 with your adapter’s name and 18.104.22.168 with an alternate DNS server address.
After you complete the steps, you can test the new configuration using the ping command (for example ping google.com ) to see if the internet is working. Alternatively, you can open a website to see if the configuration works.
Microsoft is in the process of retiring netsh from Windows 10. As a result, you should start using the “NetTCPIP” networking module available in PowerShell instead.
Set static IP address on Windows 10 from PowerShell
Windows 10 also includes the PowerShell command line platform that allows you to use the “NetTCPIP” module to manage networking settings, including the ability to change the IP address settings of your computer.
To set a static IP address with PowerShell, use these steps:
Open Start .
Search for PowerShell , right-click the result, and select the Run as administrator option.
Type the following command to view your current network configuration and press Enter :
After running the command, note the following information:
Type the following command to set a static IP address and press Enter :
In the command, replace the InterfaceIndex number (5) with the corresponding number of your adapter. Change IPAddress with the static IP address you want to assign to your device. Change PrefixLength (subnet mask) with the correct bit number if necessary. Typically on a home network, the setting is 24 . Also, change the DefaultGateway option with the default gateway address of the network.
Type the following command to assign a DNS server address and press Enter :
If you need to set a secondary DNS server address, use a comma to use the same command with another address. For example:
In the command, replace the InterfaceIndex number (5) with your network adapter’s corresponding number. Also, change ServerAddresses with the DNS IP address.
After you complete the steps, you can test the new configuration by opening your web browser and navigating a website.
Whatever method you use, assigning an IP address within the network range and outside of the DHCP server scope is recommended to allow proper connectivity and avoid address conflicts. If multiple devices share the same address, this will cause a networking conflict, preventing connection to the internet.
Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He's also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ & Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter) , YouTube , and LinkedIn .
- Windows 11 build 25314 rolls out new features in Canary Channel
- How to completely remove printer driver on Windows 10
We hate spam as much as you! Unsubscribe any time Powered by follow.it ( Privacy ), our Privacy .
How to Set a Static IP Address on a Windows PC
You can learn how to set up a static IP address on your computer. Here's how.
While most of the internet runs on dynamic addresses these days, static addresses are sometimes helpful to use as well. Whether you need to run a server of your own, set up external devices or services, or are just simply looking to explore, before you get your hands dirty, you need to know your way around and be super careful while setting up an IP address.
Moreover, there's more than one way to go about this. So, one by one, let's look at all the ways you can easily set up a static IP address on your Windows.
Static IP Addresses: The Whys and Hows
An IP address of a computer that stays the same over time is known as a Static IP address . This is in contrast to a dynamic IP Address, which is an address that can tweak over time.
Today, most devices use a dynamic IP address because of their ease of use and management. However, in rare cases, Static IP addresses can become handy. Some of those cases include:
- When you have external devices that you can only connect to your network through your IP address.
- When you connect to other networks through a VPN.
- Static IP addresses can make hosting a server somewhat easier.
Because of a slew of such benefits, using a Static IP address can make your life super easy in some situations. So, now let's look at the different methods you can use to set up a static IP address for yourself.
How to Set a Static IP Address on Windows 11
Like most things on Windows, you have multiple ways to do this. Let's look at the most straightforward method first, which is using Windows Settings.
Here's how you can set a static IP Address using the Windows settings:
- Head to the Start menu search bar, type in 'settings,' and select the best match. Alternatively, press the Windows Key + I to launch the Settings menu.
- Then head to Network & internet settings .
- Look for the Properties button. It's right next to your connection settings.
- Scroll down and look for the IP assignment section. Then click on Edit .
- In the new Edit IP settings dialog box, click on the scroll-down menu and select Manual .
- Toggle on the switch for the IPv4 button.
- Fill in all the network details here, including the IP address , Subnet mask , Gateway , and then click on Save .
Follow the above steps meticulously, and your Windows 11 will have a new static IP address from here on.
How to Set Up a Static IP Address on Windows 10
The basics of setting up an IP Address in Windows 10 are similar. Even though the implementation of steps might differ here and there, you have to follow a pattern that's pretty much the same. Here's how:
- Open the Windows 10 Settings.
- Click on Network & Internet .
- Depending on how you are connected to the Internet, select Wi-Fi or Ethernet .
- Select the current network connection.
- Toggle on the IPv4 switch.
- Set up the static IP address here and fill in other relevant information, such as the Preferred DNS , Default Gateway , etc.
- Click on Save .
After you are done, you will have a new static IP address on your PC from here on.
How to Set Up a Static IP With Command Prompt
The above method, using the Settings GUI, is only one of the ways to tweak your IP address settings. For those of you who tilt more towards a command line rather than a simple click-and-play GUI, luckily, alternatives exist. For instance, you can also use the Command prompt, and set up the address with just a few commands.
To change up your IP address through your Command Prompt, follow the below steps:
- Head to the Start menu search bar, type in 'cmd,' and launch the cmd as administrator.
- Type in the following command in the cmd and hit Enter : ipconfig /all
- Subnet mask
- Default Gateway
- DNS Servers
- Type in the following command to assign static IP address on your Windows and hit Enter : netsh interface ip set address name= "Ethernet1" static 10.1.4.220 255.255.255.0 10.1.4.1 In the above command, replace Ethernet1 with the name of your adapter, and change 10.1.4.220 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to your network configuration
- Now type the following command to set up a DNS server address and hit Enter : netsh interface ip set dns name= "Ethernet1" static 10.1.4.1
That's it. Your new static IP address will be set up from here.
How to Set Up a Static IP Address With PowerShell
PowerShell is another tool primarily handy for power users, designed to give them more control and management capabilities through task automation. If any of the above methods fail, you can also use PowerShell to set up the Static IP Address. Here’s how you can get started:
- Head to the Start menu search bar, type in ‘powershell,’ and run it as administrator.
- Type the following command to view your current network configuration and press Enter : Get-NetIPConfiguration
- Type in the following command to set up a static IP address and hit Enter : New-NetIPAddress -InterfaceIndex 10 -IPAddress 10.1.4.119 -PrefixLength 24 -DefaultGateway 10.1.4.1
- Here, replace all values of information. Replace the InterfaceIndex number (10) with the number assigned to your adapter. Similarly, replace the above IPAddress with a static IP address that you want to set.
- Finally, type in the following command to assign the DNS server address and hit Enter : Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1
Again, replace the InterfaceIndex number (10) with your network’s corresponding number. Also, replace the ServerAddress with the DNS IP address.
You will have a new static IP address as soon as you finish all the above steps.
Setting up a Static IP Address on a Windows PC
Setting up your static IP address doesn't have to be complicated. If you follow the above methods we have laid out above, you should be done without any significant difficulties.
And while static IP address has their uses, dynamic addresses are undoubtedly necessary. So, before you make an important switch, ensure you understand their significant differences well.
Didn't find what you are looking for? Raise a request here
- Change Ip Address From Command Prompt
How to Change IP Address From Command Prompt in US?
- Updated: June 2, 2023
Minnie J. Hamilton
View network information to change ip address from command prompt in us, how to change your ip address, default gateway, and subnet mask in usa, how to change ip address from command prompt in usa on windows pc, final thoughts.
An IP address contains information about your device, Internet Service Provider (ISP), location, and web browser. You can change your IP address to install a new router or reconfigure your network. Changing your PC’s IP address using the Control Panel is simple, but you can also change the IP address from Command Prompt in USA.
Changing the IP address using the control panel interface is easy-peasy but requires the hassle of going through several clicks on different windows.
However, if using the Command Prompt is your thing, you can do it faster with the “netsh” command, one of the best-inbuilt network utilities of Windows.
If you are using Windows 10 or 8.1, right-click on the Start menu or press Windows + X from your keyboard, and select Command Prompt. In earlier Windows versions, you need to search in Start for Command Prompt, then right-click and run it as administrator.
Before you change the IP address from the command prompt in the USA and its related information, you need to know the complete network name for the interface you want to modify. First, you need to find your private IP address on your device. To do this, run this command:
Scroll down and look for the Wi-Fi interface, which on our system is named “Wi-Fi 2.”
Other default names will also appear that Windows gives to interfaces like “Ethernet,” “Local Area Connection,” and “Local Area Connection*12.” Just find the interface you are looking for and write down its name.
You can also copy and paste it into a text editor and then write it back in the Command Prompt later for convenience. To find your IP address on Linux , you will need to use the command-line app.
Once you have the device name, you can now change the IP address, default gateway IP Address , and subnet mask. To do this, you must run the following command:
For instance, the command could look like this:
Information will change with what you intend to use. In this example, the command does the following:
- Utilizes the name “Wi-Fi”.
- Make sure your IP address is set to 192.168.8.1.
- The subnet mask should be 255.255.255.0.
- The Default Gateway should be set to 192.168.8.1.
If you are using a static IP address but wish to use a dynamic IP address that is automatically assigned by a DHCP server , run the following command:
Here’s how to change the IP address in Command Prompt in USA on Windows 10 :
- Simultaneously press the Windows key and X key. Then click on Command Prompt.
- Once the dialogue box is opened, type ipconfig /release in the Command Prompt window.
- Press Enter and it will show the current IP configuration.
- Now type ipconfig /renew in the Command Prompt window and press Enter. After a while, the DHCP server will assign your computer a new IP address.
FAQs – Change IP Address From Command Prompt in USA
How do i manually set an ip address in windows 10.
You can easily set an IP address in Windows 10 by following the steps given below.
- Run Settings > Network & Internet.
- Click “Properties”.
- Click “Edit” in the “IP Settings” section.
- Select “Manual” from the drop-down menu.
- Turn on the “IPv4” switch.
- Fill out the IP setting form.
Does VPN change IP address?
VPN configuration not only changes your IP address but also improves your overall internet experience. VPN services improve speed by bypassing throttling and avoiding network congestion.
Windows users can use Command Prompt to change a lot of network settings and change IP address. You can also check your IP address and other settings through the control panel of your PC, but it gets quite complicated as you have to open various windows. By following the simple commands mentioned above, you can change IP Address from Command Prompt on your PC.
Minnie J. Hamilton's Biography :
Minnie's road to sense of fulfillment and purpose has touched medicine, pattered into business & economics and is now finding the expansion of that purpose through voices of reason in the world of technology & online privacy. She will continue to write as long as people may find truth in it. On Sunday’s, she snaps back into the reality of fantastical ogres, satyrs and the depths of the seas. Her current adventure is The Ninth House.
Leave a Reply 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.
- 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
- Terms of Service
- 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 Prompt.
- 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 .
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” .
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” .
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.
At this point, you'll likely have to authenticate yourself as an administrator.
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” .
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.
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.
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.
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.
If you'd rather set your IP address manually, you can instead use the following command:
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 .
RELATED ARTICLES MORE FROM AUTHOR
How to Add a User Account on Windows 11
How to Delete a User Account in Windows 11
How to Reduce Excel File Size (All Methods)
Microsoft’s Latest Windows 11 Update Drops Outdated SMB1 Protocols for Enhanced...
Intel Set to Expand with Dedicated Military Chip Production Facilities
OpenAI Launches Data Partnerships to Improve AI Training Data Sets
Snap Unveils Lens Studio 5.0 Beta with ChatGPT Integration and Enhanced...
Subscribe to WinBuzzer on Google News
How to Assign Static IP Address From Command Prompt?
No device can communicate over a network without a valid IP address. Usually, the DHCP server provides IP ( Internet Protocol ) addresses to devices connected to the network.
Sometimes we must assign a static IP address to a PC while troubleshooting the network.
We use Static IP Address to fix APIPA (Windows IP Configuration) .
There are different ways to assign it to a PC, but the easiest method is the DOS method.
This tutorial explains how to configure a static IP address from Command Prompt and explains the procedure with a practical example.
At the end of this tutorial, you can see how to perform the same procedure on Mac.
Steps to Assign Static IP To Any Interface From Command Prompt
Start ms-dos as administrator.
You must start the command prompt as administrator to set a static Internet Protocol number (IP) on your computer from the command prompt.
Press the Windows key and S together to open the Search box.
Type cmd on the Windows Search and right-click the Command Prompt icon.
Tap on the Run as Administrator to open Command Prompt with administrative privileges.
To learn more about it, visit the link below.
Set Static IP Address Command Line
Type the following command on the DOS window.
- Press the Enter key.
It is the theoretical explanation of configuring a logical address on a laptop without the help of a DHCP server.
Now let us check a practical example to learn it.
A Practical Guide to Set Static IP From Command Line
Here I assign a Static IP Address 192.168.42.1 to my computer with default gateway 192.168.42.129 and subnet mask 255.255.255.0.
We need to find the Ethernet Adapter name ( Interface name) to execute the DOS command to set a static IP address.
So, follow the steps carefully.
Check the Current IP Address and The Interface Name
Type ipconfig on the Command Line and Press the Enter key.
You can see the IP address and the respective Ethernet adapter name (Interface name).
The Interface name is Local Area Connection 2 .
Execute the Static IP Command
Press the Enter key to execute the command.
Check the Static IP Address From the Command Prompt
Type ipconfig on the Command Line and press the enter key.
We have successfully assigned the static IP address 192.168.42.1 to this Windows 11 laptop from the Command Line.
How to Release Static IP From Command Prompt
You cannot release and renew a static IP address by using ipconfig/release .
There is another DOS Prompt command to remove the static IP address set on a computer.
netsh interface ip set address connected adapter name dhcp
Have a look at the screenshot below and find the Ethernet adapter name.
In our case, the adapter name is Local Area Connection 2 .
So, to release the static IP address we assigned, use the following command on the DOS prompt.
netsh interface ip set address Local Area Connection 2 dhcp
You can read more about it from the link below.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to change the IP address of a network adapter
- 3 contributors
This article provides some information about how to change the IP address of a network adapter.
Applies to: Windows Server 2012 R2 Original KB number: 323444
This article describes how to change the Internet Protocol (IP) address that is assigned to a network adapter. An IP address may be assigned automatically if your network has a Dynamic Host Configuration Protocol (DHCP) server, or you can specify an IP address.
How to change the IP address assigned to a Network Adapter
- Log on to the computer by using the Administrator account.
- Click Start, point to Control Panel, and click Network Connections.
- Right-click the local area connection that you want to modify and then click Properties .
- In the This connection uses the following items box, click Internet Protocol (TCP/IP), and then click Properties. The Internet Protocol (TCP/IP) Properties dialog box appears.
- Continue with the steps in one of the following two sections, depending on your circumstances.
How to automatically obtain an IP Address
Follow these steps to configure the computer to obtain an IP address from a DHCP server. You must have a DHCP server.
Click Obtain an IP address automatically .
Click Obtain DNS server address automatically if you do not want to specify the IP address of the Domain Name System (DNS) server.
- Click OK. In the Local Area Connection Properties dialog box, click Close.
- In the Local Area Connection Status dialog box, click Close.
Click Start, and then click Run.
In the Open box, type cmd, and then click OK.
At the command prompt, type ipconfig /release, and then press ENTER.
Type ipconfig /renew, and then press ENTER.
The network adapter is assigned an IP address by the DHCP server, and a message similar to the following appears:
Type exit, and then press ENTER to quit the command prompt.
How to Specify an IP Address
To assign an IP address to the network adapter, follow these steps:
- Click Use the following IP address if you want to specify the IP address for the network adapter.
- In the IP address box, type the IP address that you want to assign to this network adapter. This IP address must be a unique address in the range of addresses that are available for your network. Contact the network administrator to obtain a list of valid IP addresses for your network.
- In the Subnet mask box, type the subnet mask for your network.
- In the Default gateway box, type the IP address of the computer or device on your network that connects your network to another network or to the Internet.
- In the Preferred DNS server box, type the IP address of the computer that resolves host names to IP addresses.
- In the Alternate DNS server box, type the IP address of the DNS computer that you want to use if the preferred DNS server becomes unavailable.
There is an IP address conflict: If you try to assign an IP address that is already in use, you receive the following error message:
The static IP address that was just configured is already in use on the network. Please reconfigure a different IP address.
In this case, assign an unused IP address to the network adapter.
Your computer cannot connect to other computers on the network: If you assign an incorrect subnet mask address to the network adapter, the computer is effectively located on a different network. You cannot connect to other computers on the network.
Your computer cannot connect to other computers by using host names: If you assign an incorrect DNS server IP address, or if you do not use a DNS server, you cannot connect to computers by using their host names. It prevents you from browsing the Internet. You can connect to other computers by using their IP addresses.
To work around this issue in a local network, add host-name-to-IP-address mappings in a Hosts file.
Was this page helpful?
Submit and view feedback for