Cmd Ipconfig How to run all Ipconfig commands in Windows (2023)

How many times have you seen your IT guy use the IPConfig /flushdns command to magically make Internet problems disappear? That's no coincidence because Microsoft ships Windows with IPConfig, a TCP/IP utility for viewing and managing your computer's network problems via the command line. It can show you the network information at a glance along with a detailed report if needed. You can get a new IP assigned, view and flush DNS, among other things. Let's explore and learn how to run all IPConfig commands in Windows using the tutorials we have prepared for you.

What is IPConfig?

Think of IPConfig as a way to manage how your computer connects to the Internet and other networks. IPConfig (Internet Protocol Configuration) is a command line utility application program used to display/manage the IP addresses assigned to your computer.

What is IPConfig?How to use IPConfigHow to use IPConfig /allWhat are the parameters of IPConfig?Release and renew IP address via IPConfig parameterRelease IP address via IPConfig /Release ParameterRenew IP address via IPConfig /Renew ParameterView DNS Cache with IPConfig CommandHow to Clear DNS Cache in Windows with IPConfig Command

You can perform more functions by adding certain commands to it. This application has been available since Windows 98 (before XP and 7) and is now available on Windows 11, providing the same utility with a few additional features. You can run it in Terminal and PowerShell on Windows. Command Prompt aka Terminal (since Windows 10) and PowerShell are pre-installed in Windows. You can open them via the run prompt or Start menu search.

How to use IPConfig

We will learn how to use the IPConfig program in Terminal. You can use PowerShell for the same thing and it will give you the same functionalities.

(Video) Using IPCONFIG for Network Troubleshooting

  1. Go to Start menu search and type cmd or command prompt.

Alternate way: Press Ctrl + R to open the run prompt and press Ctrl + Shift + Enter after typing CMD in the box.2. Right-click on the first result and select Run as administrator to open a command prompt with administrator privileges.

  1. Now type the following command and press ENTER.P.S. – It does not matter the case of the letter. The command can be in uppercase, lowercase, or even a combination of both.
  2. You will see your network information here. It will include your virtual machine's network adapter, wireless, and wired (optional) information.

The information listed may seem difficult to understand if you are not a regular user of this tool. Let us break it down and help you understand.

IPv4 Address – This is the IP address of your computer. Subnet Mask – Helps split your network into two parts for efficiency, speed, and security. Default Gateway – Here you act as an intermediary between your computer and the Internet through the router.

How to use IPConfig /all

IPConfig as a standalone command briefly displays the information of the network adapters. You can use IPConfig/all detailed accounts of the same. Here's how to use it to view extension information.

  1. We will first clear the previously requested information by pressing enter after typing cls.

    (Video) Basic Networking Commands (Video 1) IPConfig Explained Windows 10 - How to Find IP Address

  2. When the screen is empty, type the following command.

  3. A detailed list of information will appear in the command prompt. Each network adapter will have separate details under the heading.

Some of these terms you should know:

Hostname: This is the name of your computer that appears to other computers on a network. Physical Address: This is the MAC address, which is the unique address of the computer for use on a network or on the Internet. No two MAC addresses can be the same. DHCP enabled: This means that the IP address your network connection uses is DHCP, Dynamic Host Configuration Protocol (between DHCP and Static IP address), and will change over time. DNS servers: A server that your computer uses to access a website online. A DNS server is like the internet phone book that knows the numbers of all the websites. When you type a website address, it becomes an IP address of the website you want to connect to.

What are the IPConfig parameters?

IPConfig isn't just a way to view network adapter information. It is capable of many important functions that help keep your Internet and network adapters running smoothly. You can use IPConfig /? to find all the IPConfig commands available to you. This is how you do it. Use cls to clear the screen before continuing if the screen is full of previously requested information.

(Video) Basic Networking Commands (Part 1)

  1. Type the following command and press ENTER.
  2. All IPConfig commands will appear on the screen. You will see all the parameters available to use using the IPConfig command.

The thing to remember is that these commands perform the same function. You can continue to use IPConfig and IPConfig /all to avoid writing longer parameter commands.

Release and renew the IP address via the IPConfig parameter

Release IP address via IPConfig/Release Parameter

IP addresses are not permanent when you are using a DHCP server (because the other way is static IP which isn't cheap), which assigns you an IP for a short period of time. The expiration period is usually after 24 hours and it normally renews itself for a new IP address. It may not automatically renew after its expiration for reasons such as:

You installed a new router or modem You had a power outage You reconfigured the local network Move your computer to a different location adding a new network requirement to the mix.

In either case, you can manually release the IP address via the IPConfig /Release parameter. This is how you can do it via Command Prompt as follows.

  1. Open Command Prompt and press ENTER after typing the following parameter command.

Note: You can release the IP address of a specific adapter by typing ipconfig /release "adapter name". Just replace the adapter name with the name of your adapter.2. Statements with "No operation can be..." will appear for all your adapters. Your Internet will also stop working when the IP addresses of all network adapters are released.

(Video) Windows tips and tricks ipconfig command to see if Internet connection is there when you have proble

Renew IP address via IPConfig/Renew Parameter

We will renew the IP address using IPConfig /renew, which will assign new IPs to all network adapters.3. Type the following command and press ENTER to renew the IP address.

Note: You can renew the IP address of a specific adapter by typing ipconfig /renew "adapter name". Just replace the adapter name with the name of your adapter.4. All network adapters will get a new IP address and you will be able to use the Internet like any other normal day.

View DNS cache with the IPConfig command

DNS, or Domain Name System, is a system that allows people to access websites and other online resources using easy-to-remember names instead of numerical IP addresses. Think of DNS as a kind of "phone book" for the Internet. Just like you can look up a person's phone number in a phone book by name, DNS allows you to look up a website's IP address by its domain name. This makes it much easier for people to browse the Internet, as it is much easier to remember a name like "" than it is to remember a series of numbers like "". Similarly, the DNS cache is a temporary database that stores DNS search results on your computer. When you visit a website or use any other service that requires DNS resolution, your computer will first check the DNS cache to see if it has a recent record for the domain name you're trying to access. IP address to connect to the website or service, which can speed up the domain name resolution process. When the DNS cache does not contain a record for the domain name, your computer will send a request to a DNS server to look up the IP address. Let's look at the DNS cache using the IPConfig command via the command prompt.

  1. Open the command prompt, type the following command, and press ENTER.

  2. You will see the DNS cache of different websites and apps here.

    (Video) [025] Using the ipconfig command in the Windows 10 Command Prompt

How to clear the DNS cache in Windows with the IPConfig command

Clearing your DNS cache can help you in more ways than you might think. One reason to clear the DNS cache is to fix website loading errors. If you experience errors when trying to load a particular website, clearing the DNS cache may help resolve the issue. You can also speed up website loading by clearing out the clutter of DNS records. This can also improve your privacy, as other sites you visit can see your DNS cache. They can see the sites you visited previously. Sometimes certain sites won't load while your internet is working fine. Clearing the DNS cache may help resolve the issue. This is how you can clear the DNS cache with the IPConfig parameter.

  1. It will take 2-4 seconds and your DNS will be cleared with the message "DNS resolver cache flushed successfully".

Note: In addition to the computer, Google Chrome maintains its own DNS cache that can be cleared to fully resolve any issues. On the other hand, Mozilla Firefox stores the DNS cache in RAM, so it is cleared when you close the browser. I'll pass it on to you This is how to run all IPConfig commands on a Windows PC. You can clear the DNS cache, and release and renew IP addresses, among half a dozen other things using IPConfig parameters. Keep clearing your DNS cache from time to time and you won't have network problems on the computer. is wirelessly connected to the Internet via Wi-Fi, then consider turning it off periodically to reset the network cache.

Cmd Ipconfig How to run all Ipconfig commands in Windows (1)Cmd Ipconfig How to run all Ipconfig commands in Windows (2)Cmd Ipconfig How to run all Ipconfig commands in Windows (3)Cmd Ipconfig How to run all Ipconfig commands in Windows (4)Cmd Ipconfig How to run all Ipconfig commands in Windows (5)Cmd Ipconfig How to run all Ipconfig commands in Windows (6)Cmd Ipconfig How to run all Ipconfig commands in Windows (7)Cmd Ipconfig How to run all Ipconfig commands in Windows (8)Cmd Ipconfig How to run all Ipconfig commands in Windows (9)Cmd Ipconfig How to run all Ipconfig commands in Windows (10)Cmd Ipconfig How to run all Ipconfig commands in Windows (11)Cmd Ipconfig How to run all Ipconfig commands in Windows (12)Cmd Ipconfig How to run all Ipconfig commands in Windows (13)Cmd Ipconfig How to run all Ipconfig commands in Windows (14)


Cmd Ipconfig How to run all Ipconfig commands in Windows? ›

Right click the windows button in the lower left of your screen. Select command prompt from the list. A black and white window will open where you will type ipconfig /all and press enter.

How do I run ipconfig command in Windows? ›

The ipconfig command

Go to "Start > Run" and type " cmd " (no quotes), then select "OK" Type " ipconfig /release " (no quotes) and press "Enter" Once the prompt returns, type " ipconfig /renew " (no quotes), then hit "Enter,"

How do I list all IP connections in Windows? ›

On Windows or macOS type ipconfig or on Linux type ifconfig. Press return. Note down the subnet mask, the default gateway, and your own computer's IPv4 address. Enter the command arp -a to get a list of all other IP addresses active on your network.

What is ipconfig and ipconfig all? ›

ipconfig/all: It gives the full configuration of the system. ipconfig/registerdns: This command refreshes all DHCP leases and reregisters the DNS names. ipconfig/displaydns: It displays the information that is stored in the DNS Resolver cache. It has all the DNS information that has been used earlier.

How to see all IP addresses in Windows cmd? ›

  1. From the desktop, navigate through; Start > Run> type "cmd.exe". A command prompt window will appear.
  2. At the prompt, type "ipconfig /all". All IP information for all network adapters in use by Windows will be displayed.

How to see all devices on network with cmd? ›

Type CMD in the search box and click Run as Administrator from the menu. Enter the net view command to view devices connected to your network You will then see a list of devices connected to your network in the output.

What is netstat command in cmd? ›

The netstat command generates displays that show network status and protocol statistics. You can display the status of TCP and UDP endpoints in table format, routing table information, and interface information. netstat displays various types of network data depending on the command line option selected.

How do I see all network connections? ›

Select Settings > Network & internet. The status of your network connection will appear at the top. Windows 10 lets you quickly check your network connection status. And if you're having trouble with your connection, you can run the Network troubleshooter to try and fix it.

How can I get a list of all network connections? ›

For a quick overview of active network connections, a simple command in PowerShell: Get-NetTCPConnection or the netstat command prompt is sufficient. For a better overview or more details, special programs can be used, up to the network sniffer: Wireshark, which can record the complete network traffic.

How do I see all TCP connections? ›

You can do this with the netstat command. The netstat command displays the active TCP connections and ports on which the computer is listening, and other information such as process IDs.

What does ipconfig release all do? ›

First, ipconfig /release is executed to force the client to immediately give up its lease by sending the server a DHCP release notification which updates the server's status information and marks the old client's IP address as "available". Then, the command ipconfig /renew is executed to request a new IP address.

What is the difference between ipconfig and IP? ›

The ip command is more versatile and technically more efficient than ifconfig because it uses Netlink sockets rather than ioctl system calls. The ip command may appear more verbose and more complex than ifconfig , but that's one reason it's more versatile.

What does ipconfig reset do? ›

ipconfig/release = the client sends a “RELEASE” packet to the DHCP server & then clears its own configuration on the selected interface(s). This essentially resets to 'empty' all the relevant parameters. The DHCP server then does whatever it is configured to do with that address.

How to see all IP in netstat? ›

Type "netstat -bn" and press "Enter" to get the list of IP addresses along with the processes that initiated the connections. The protocol, IP and status are displayed under each program.

How to check others IP address using cmd? ›

How to Trace an IP Address Using the Command Prompt
  1. Open the Command Prompt. First, press the Windows key and the “R” button. ...
  2. Ping the Website You Want to Trace. Type “ping” followed by the URL of the website to get its IP.
  3. Run the “Tracert” Command on the IP. ...
  4. Put These IPs Into an IP Lookup Tool.
May 31, 2022

What is the nslookup command? ›

The nslookup command queries internet domain name servers in two modes. Interactive mode allows you to query name servers for information about various hosts and domains, or to print a list of the hosts in a domain. In noninteractive mode, the names and requested information are printed for a specified host or domain.

How to view all network connections in Windows 10 cmd? ›

Here's how you can open the Network Connections tool via the Command Prompt:
  1. Press Win + R to open the Run command dialog box.
  2. Type CMD and press Ctrl + Shift + Enter to open an elevated Command Prompt.
  3. Type ncpa. cpl and press Enter to open the Network Connections tool.
Dec 28, 2021

How to see all local users in cmd? ›

View Users

To view user accounts on your computer: Open an elevated/administrator command prompt. Type net user and press Enter. Observe the list of user accounts on your computer.

How to show hidden devices in device Manager cmd? ›

How to view all hidden devices in Windows
  1. Open an elevated command prompt.
  2. At the command prompt, type SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 and press Enter .
Oct 11, 2021

What is the difference between netstat and ifconfig? ›

The netstat command provides the names of all network interfaces together with addressing and statistical information. The ifconfig command shows the current parameters of a specified network interface.

What does *:* mean in netstat? ›

The first *, in *:* , means connections can come from any IP address, and the second *, in *:* , means the connection can originate from any port on the remote machine.

What is the full netstat command? ›

The netstat command displays the contents of various network-related data structures for active connections. This netstat function shows the state of all configured interfaces. This function of the netstat command clears all the statistic counters for the netstat -i command to zero.

How to check network connectivity in cmd? ›

For Windows 10, go to Search in the taskbar and:
  1. Type “cmd” to bring up the Command Prompt.
  2. Open the Command Prompt.
  3. Type “ping” in the black box and hit the space bar.
  4. Type the IP address you'd like to ping (e.g., 192.XXX.X.X).
  5. Review the ping results displayed.

How do I open network Settings in cmd? ›

Using the Command Prompt

You can also open the Network and Sharing Center from the Command Prompt. To do this, open the Command Prompt by typing ¡°cmd¡± in the Run dialog box and pressing Enter. Then, type ¡°control.exe /name Microsoft.

How do I reset all network connections? ›

Select Start > Settings > Network & internet > Advanced network settings > Network reset.

Which commands show all LISTening TCP ports? ›

In order to check which application is listening on a port, you can use the following command from the command line:
  • For Microsoft Windows: netstat -ano | find "1234" | find "LISTEN" tasklist /fi "PID eq 1234"
  • For Linux: netstat -anpe | grep "1234" | grep "LISTEN"
May 19, 2022

How do I see all TCP ports in Windows? ›

How to check for open ports on Windows
  1. Open the Command Prompt. ...
  2. Type “netstat -aon” and hit enter.
  3. Look for the port numbers in the LISTening state. ...
  4. If the port numbers aren't in the LISTening state, you'll need to open them manually.
Aug 17, 2022

How do I trace a TCP IP connection? ›

Now you can run TCP traceroute in the following way:
  1. To open the Command Prompt (CMD), press Win + R keymatch. Run dialog box will be opened.
  2. Type cmd and click on the OK button:
  3. Type the command: tracetcp domainname.tld. NOTE: domainname. ...
  4. Press Enter.

Does resetting router change IP? ›

The easiest way to change IP manually is simply to reset your router. Note that this method will simply issue a new dynamic IP address (constantly changing) rather than a static one. You can also choose to refresh your IP address.

How do I flush DNS and renew my IP? ›

To release/renew your IP address, and flush DNS on Windows:
  1. Search box "Commend prompt"
  2. Type "ipconfig /release" and press Enter.
  3. Type "ipconfig /renew" and press Enter.
  4. Type "ipconfig /flushdns" and press Enter.
  5. Restart the computer.
Feb 7, 2022

What is 169.254 IP address? ›

169.254 IP address is a “magic” IP in the cloud world, in AWS it used to retrieve user data and instance metadata specific to a instance. It can only be accessed locally from instances and available without encryption and authentication.

What's my private IP address? ›

Search for cmd in the Windows search bar, then in the command line prompt, type ipconfig to view the private IP address.

What replaced ipconfig? ›

The ipconfig and netstat commands are deprecated. For example, to display a list of network interfaces, run the ss command instead of netstat . To display information for IP addresses, run the ip addr command instead of ifconfig -a .

Is ifconfig obsolete? ›

The ifconfig command is a legacy tool used to configure network interfaces in Linux. Even though the utility was deprecated and replaced with the ip command, ifconfig is still used and often comes preinstalled on modern Linux distributions.

What does flush DNS command do? ›

What does flush DNS do? Flushing DNS will clear any IP addresses or other DNS records from your cache. This can help resolve security, internet connectivity, and other issues.

What command shows all IP addresses? ›

On Windows, type the command “ipconfig” and press Return. Get more information by typing the command “arp -a.” You should now see a basic list of the IP addresses for devices connected to your network.

What is ARP command? ›

The arp command displays and modifies the Internet-to-adapter address translation tables used by the Address in Networks and communication management. The arp command displays the current ARP entry for the host specified by the HostName variable.

How can I trace an IP address location? ›

To identify the location of the IP address, you can use a tool such as NordVPN IP Lookup. This tool will allow you to enter the IP address and it will then display the geographic location of the IP address. If you wish to trace multiple IP addresses, you can repeat the same process for each one.

How to trace someones IP address? ›

Use an Online IP Lookup Tool

Websites such as offer help finding IP addresses and uncovering where they're located. Be sure to double-check IP address information you find to verify its accuracy.

How do I find the IP address of a device connected to my computer? ›

In order to get a list of the IP of all of the devices connected to your entire network, follow these steps:
  1. Open a terminal window to get to the command line.
  2. Issue the command ipconfig and press Return. On Linux type ifconfig instead.
  3. Enter the command arp -a to get more information.
Jan 9, 2023

How to check DNS records using cmd? ›

Go to Start and type cmd in the search field to open the command prompt. Alternatively, go to Start > Run > type cmd or command. Type nslookup and hit Enter. The displayed information will be your local DNS server and its IP address.

What is the difference between DNS and nslookup? ›

This is called “resolving,” where a DNS server checks to see if a given URL has an IP address. Nslookup is similar in that it asks the DNS server for information on a domain, but it can gather more information about mail servers, IP addresses, and more.

What is the difference between ping and nslookup? ›

What's the Difference Between nslookup and Ping? While both are useful for troubleshooting network problems, ping uses additional steps to resolve a domain name to an IP address. Meanwhile, nslookup only relies on the DNS server. Pinging an IP address lets you verify if the address exists and can handle requests.

What happens if you execute ipconfig in Windows command line? ›

In Windows, ipconfig is a console application designed to run from the Windows command prompt. This utility allows you to get the IP address information of a Windows computer. It also allows some control over your network adapters, IP addresses (DHCP-assigned specifically), even your DNS cache.

How to find your IP address? ›

On an Android/tablet

Go to your Wifi network settings, then select the network you're connected to. You'll find your IP address along with the other network information.

Why is ipconfig not working? ›

Run SFC and DISM Scans

To ensure that the file is still in the system, go to %SystemRoot%\system32 or C:\Windows\System32 and check if there is an executable file under the name ipconfig. In case you find the file missing or corrupted, you can use the system file checker tool to restore the files.

How do I find the IP address of another computer using cmd? ›

Get the IP address and username

Press Win + R on the host computer to open the Run dialog box. Enter "cmd" and then hit OK. Step 2. To get the IP address for Remote Dekstop, enter the command "ipconfig" and note the IPv4 Address.

What command do you run if you want to view IP configuration information in Windows? ›

Using the ipconfig Command

The ipconfig command displays the basic IP addressing information for each network interface on the Windows system. This information includes both the IP address and subnet mask.

Can you track someone's IP address? ›

By using tools, such as Whois Lookup, you can trace an IP address and gain valuable insight into the whereabouts of the person or website you are trying to find. Before we get into the steps of IP address tracing, let's take an in-depth look at IP addresses.

Can you reveal your IP address? ›

Unless you use a VPN (Virtual Private Network) when you access the internet at home, your IP address remains public. Each time you click on a link, your router sends your IP information to the site you've opened.

How do I fix my IP configuration? ›

To enable DHCP or change other TCP/IP settings
  1. Select Start, then type settings. Select Settings > Network & internet.
  2. Do one of the following: ...
  3. Next to IP assignment, select Edit.
  4. Under Edit network IP settings or Edit IP settings, select Automatic (DHCP) or Manual. ...
  5. When you're done, select Save.

How do you fix an IP address problem? ›

Quick fixes for the “Windows has detected an IP address conflict” error message
  1. Try restarting your router. ...
  2. Disable then re-enable your network adapter. ...
  3. Release and renew your IP address. ...
  4. Remove static IP and use an automatic IP instead. ...
  5. Disable IPv6. ...
  6. Use a VPN to get a different IP address each time.
Feb 16, 2022

How can I see all devices on my network? ›

Type the command "arp -a" to view the list of all IP addresses connected to your network. This will also display the MAC address and the allocation type (static and dynamic) of all your network devices. Type "nslookup" followed by any IP address obtained through the "arp" command in the previous step.

How do I ping everything on my network? ›

How to run a ping network test
  1. Type “cmd” to bring up the Command Prompt.
  2. Open the Command Prompt.
  3. Type “ping” in the black box and hit the space bar.
  4. Type the IP address you'd like to ping (e.g., 192.XXX.X.X).
  5. Review the ping results displayed.


1. How to Use the Ipconfig Command - Windows 10 - 2021
(Turbo Speed WiFi)
2. How to Release and Renew IP using command prompt
(Asif Rahman)
3. Windows command line networking: ipconfig
(Chris Walker)
4. Windows Command Line Tutorials - Tutorial 22 - ipconfig command
(Open ESchool)
5. Network Troubleshooting using PING, TRACERT, IPCONFIG, NSLOOKUP COMMANDS
6. IPCONFIG Explained - Flush DNS Cache
(PowerCert Animated Videos)


Top Articles
Latest Posts
Article information

Author: Lidia Grady

Last Updated: 28/08/2023

Views: 6130

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.