CMD IPConfig: How To Run IPConfig All Commands On Windows (2023)

It is not uncommon to see your network causing problems and not letting you use the internet with peace. And the issue only grows when you are a Windows user.

How many time have you seen your IT guy use the IPConfig /flushdns command to magically make the internet problems disappear?

That’s not a coincidence because Microsoft ships Windows with IPConfig, a TCP/IP utility for viewing and managing your computer’s network problems through the command line.

It can show you the network information at a glance along with a detailed report if required.

You can get a new IP assigned, view and flush DNS amongst other things.

Let us explore and learn to run all commands of IPConfig on Windows using the tutorials we have prepared for you.

Table Of Contents

  • What is IPConfig?
    • How to use IPConfig
    • How to use IPConfig /all
    • What are the parameters of IPConfig?
  • Release and Renew IP address through IPConfig parameter
    • Release IP address through IPConfig /Release Parameter
    • Renew IP address through IPConfig /Renew Parameter
  • View DNS Cache with the IPConfig command
    • How to clear the DNS cache on Windows with IPConfig command

What is IPConfig?

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

It can perform more functions by adding certain commands to it. This application has been available since Windows 98(before XP and 7) and now available on Windows 11, providing the same utility with a few additional features. You can run it on Terminal and PowerShell in Windows.

Command Prompt, also known as terminal(since Windows 10) and PowerShell are pre-installed in Windows. You can open them via the run prompt or the Start Menu search.

How to use IPConfig

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

1. Go to the Start Menu Search and type cmd or command prompt.

CMD IPConfig: How To Run IPConfig All Commands On Windows (1)

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.

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

CMD IPConfig: How To Run IPConfig All Commands On Windows (2)

3. Now type the following command and press ENTER.


P.S. – The letter case does not matter. The command can be in uppercase, lowercase, or even a combination of both.

4. You will see your network information here. It will include your wired, wireless and virtual machine’s(optional) network adapter’s information.

CMD IPConfig: How To Run IPConfig All Commands On Windows (3)

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

  • IPv4 address: This is the IP address of your computer
  • Subnet Mask: It helps in dividing the network into two parts for efficiency, speed, and security.
  • Default Gateway: Here it acts like an intermediary between your computer and the internet through the router.

How to use IPConfig /all

IPConfig as a standalone command shows the network adapters’ information in brief. You can use IPConfig /all the detailed accounts of the same. Here is how to use it to view the extension information.

1. First we will clear the earlier requested information by pressing enter after typing cls.

CMD IPConfig: How To Run IPConfig All Commands On Windows (4)

2. When the screen is clear, type in the following command.

ipconfig /all

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

CMD IPConfig: How To Run IPConfig All Commands On Windows (5)

Some of these terms you should know about:

  • Host Name: This is the name of your computer which appears to other computers on a network.
  • Physical Address: It is the MAC address, which is the unique address of the computer to be used on a network or the internet. No two MAC addresses can be the same.
  • DHCP Enabled: This means that the IP address your network connection is using is DHCP, Dynamic Host Configuration Protocol, (between DHCP and Static IP address) and it will be changed over time.
  • DNS Servers: A server that is used by your computer to access a website online. A DNS server is like the internet’s phonebook which knows the numbers of all the websites.

    When you type a website address, it is converted into an IP address of the website with which you want to want with.

    (Video) Using IPCONFIG for Network Troubleshooting

What are the parameters of IPConfig?

IPConfig is not just a way to see network adapter information. It is capable of performing a lot of important functions that help in keeping your network adapters and internet running without hiccups.

You can use IPConfig /? to find all IPConfig commands available to you. Here is how it is done. Use cls to clear the screen before proceeding if the screen is filled with earlier requested information.

1. Type the following command and press ENTER.

IPConfig /?

2. All the IPConfig commands will appear on the screen. You will see all the available parameters to use using the IPConfig command.

CMD IPConfig: How To Run IPConfig All Commands On Windows (6)

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

IPConfig shows same as IPConfig /allcompartments
IPConfig /all shows same as ipconfig /allcompartments /all

Release and Renew IP address through IPConfig parameter

Release IP address through IPConfig /Release Parameter

IP addresses are not permanent when you are using a DHCP server(because the other way is Static IP which is not cheap), which assigns you an IP for a short period of time.

The expiry period is generally after 24 hours and it normally renews on its own to get a new IP address. It may not automatically get renewed after expiry for reasons such as:

  • Installed a new router or modem
  • If you had a power outage
  • Reconfigured the local network
  • Move your computer to a different place with the addition of a new network requirement to the mix.

In any case you can manually release the IP address through the IPConfig /Release parameter.

Here is how you can do it through the command prompt in the following manner.

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

ipconfig /release

CMD IPConfig: How To Run IPConfig All Commands On Windows (7)

Note – You can release IP address of a specifc adapter by typing ipconfig /release “adapter name“. Just replace the adapter name with your adapter’s name.

2. The statements with “No operation can be…” will appear for all your adapters. Your internet will also stop working as the IP addresses of all the network adapters are released.

(Video) IPCONFIG Explained - Flush DNS Cache

CMD IPConfig: How To Run IPConfig All Commands On Windows (8)

Renew IP address through IPConfig /Renew Parameter

We will renew the IP address using the IPConfig /renew, which will assign new IPs to all the network adapters.

3. Type the following command and press ENTER to renew the IP address.

ipconfig /renew

CMD IPConfig: How To Run IPConfig All Commands On Windows (9)

Note – You can renew IP address of a specific adapter by typing ipconfig /renew “adapter name“. Just replace the adapter name with your adapter’s name.

4. All the network adapters will get a new IP address and you can use the internet like just another regular day.

CMD IPConfig: How To Run IPConfig All Commands On Windows (10)

View DNS Cache with the IPConfig command

DNS, or the Domain Name System, is a system that allows people to access websites and other online resources using easily-remembered names instead of numerical IP addresses.

Think of DNS as a sort of “phonebook” for the internet. Just like you can look up a person’s phone number in a phonebook by their name, DNS allows you to look up the IP address of a website by its domain name.

This makes it much easier for people to navigate the internet, as it’s 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 lookup 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 of the domain name you are trying to access.

If it does, it will use the stored IP address to connect to the website or service, which can speed up the process of resolving the domain name. 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 us view DNS cache using the IPConfig command through the command prompt.

1. Open Command Prompt, type the following command, and press ENTER.

ipconfig /displaydns

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

CMD IPConfig: How To Run IPConfig All Commands On Windows (11)

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

CMD IPConfig: How To Run IPConfig All Commands On Windows (12)

How to clear the DNS cache on Windows with IPConfig command

Clearing the DNS cache can help you in more ways than you can think. One reason to clear the DNS cache is to fix website loading errors. If you are experiencing errors when trying to load a particular website, clearing the DNS cache may help to resolve the issue.

It can also speed up website loading by clearing the DNS records clutter. This can also improve your privacy as your DNS cache can be looked at by other sites you visit. They can see the sites you visited earlier.

Sometimes certain sites will not load while your internet is working fine. Clearing the DNS cache can help in solving the problem.

Here is how you can clear the DNS cache with the IPConfig parameter.

  1. Open Command Prompt and type the following command, then press ENTER.

ipconfig /flushdns

CMD IPConfig: How To Run IPConfig All Commands On Windows (13)

2. It will take 2 to 4 seconds, and your DNS will be cleared with the message ” Successfully flushed the DNS Resolver Cache.”

CMD IPConfig: How To Run IPConfig All Commands On Windows (14)

Note – Apart from the computer, Google Chrome keeps its own DNS cache which can be cleared to resolve any issues completely. On the other hand, Mozilla Firefox stores DNS cache on RAM, so it gets cleared upon closing the browser.

Over to You

This is how to run all commands of IPConfig on a Windows PC. You can clear DNS cache, and release and renew IP addresses, amongst half a dozen of other things using the parameters of IPConfig.

Keep on clearing your DNS cache every once in a while and you won’t have network problems on the computer.

If you are wirelessly connected to the internet via Wi-Fi then consider switching it off periodically to reset the network cache.

(Video) Network Troubleshooting using PING, TRACERT, IPCONFIG, NSLOOKUP COMMANDS


How can I see full ipconfig? ›

Open up a command prompt or PowerShell console on your machine and run ipconfig . You will see all of the network interfaces (NICs) installed on your system along with basic IP information.

What command would be used to configure all IP details on a Windows system? ›

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.

How can I see all data in cmd? ›

Follow these baby steps:
  1. Press Windows + R.
  2. Press Enter.
  3. Type cmd.
  4. Press Enter.
  5. Type dir -s.
  6. Press Enter.

How do I find all information in cmd? ›

Enter cmd and press Enter to open the Command Prompt window. Type the command line systeminfo and press Enter. Your computer will show you all the specs for your system — just scroll through the results to find what you need.

What is the difference between ipconfig and ifconfig all? ›

Functionality: The ipconfig command displays all the currently connected network interfaces whether they are active or not. On the other hand, the ifconfig command displays only the enabled network interfaces that are connected to the system.

What does ipconfig refresh do? ›

Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters, ipconfig displays Internet Protocol version 4 (IPv4) and IPv6 addresses, subnet mask, and default gateway for all adapters.

How do I fix ipconfig problems? ›

At the command prompt, run the following commands in the listed order, and then check to see if that fixes your connection problem:
  1. Type netsh winsock reset and select Enter.
  2. Type netsh int ip reset and select Enter.
  3. Type ipconfig /release and select Enter.
  4. Type ipconfig /renew and select Enter.

Which two commands do you use to force a new IP configuration? ›

Click Start->Run, type cmd and press Enter. Type ipconfig /release at the prompt window, press Enter, it will release the current IP configuration. Type ipconfig /renew at the prompt window, press Enter, wait for a while, the DHCP server will assign a new IP address for your computer.

What is netstat command in cmd? ›

The netstat command displays the contents of various network-related data structures for active connections. netstat -in command. This netstat function shows the state of all configured interfaces. netstat -i -Z command.

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.

Which command is used to show all information of system? ›

To display system information, use the uname command. Displays the operating system name as well as the system node name, operating system release, operating system version, hardware name, and processor type.

What is the command to display all networking information on a windows PC? ›

Step 1: In the search bar type “cmd” (Command Prompt) and press enter. This would open the command prompt window. “netstat -a” shows all the currently active connections and the output display the protocol, source, and destination addresses along with the port numbers and the state of the connection.

Which command is used to get the most detailed network configuration? ›

IPCONFIG. The IPCONFIG network command provides a comprehensive view of information regarding the IP address configuration of the device we are currently working on.

How do I get full output from cmd? ›

Right-click the title bar or click the upper-left corner of the Command Prompt window and select Properties. Click the Layout tab. In Screen Buffer Size, type or select a suitably large number in Height. The max you can enter is 9999.

Does cmd Show hidden files? ›

To show hidden files, you need to include the /a:h modifier in that command. So, dir /a:h C:your-folder will do the trick. CMD also has specific commands for showing directories and folders. /a:d shows all hidden directories, and /a shows hidden folders.

What is the most powerful command in cmd? ›

One of the most powerful tools in the CMD command library is the ASSOC command. Your computer associates certain file extensions with certain programs. This is how your computer knows to open Adobe when you double click a PDF file, or Microsoft Word when you double click a DOC file.

How can I see all IP addresses on my network using cmd? ›

First, click on your Start Menu and type cmd in the search box and press enter. A black and white window will open where you will type ipconfig /all and press enter. There is a space between the command ipconfig and the switch of /all.

How do I list all volumes in cmd? ›

  1. Connect to endpoint.
  2. Launch elevated command prompt.
  3. Run diskpart to list all volumes C:\>diskpart DISKPART> LIST VOLUME.
  4. Create script text file with the following LIST VOLUME.
  5. For each volume listed, add the following to the script text file SELECT VOLUME <#> LIST PARTITION.
Sep 2, 2020

Should I use ifconfig or 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 can I use instead of ifconfig? ›

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 .

Does ifconfig show public IP? ›

ifconfig command shows hardware address(HWaddr) and network address(inet addr) for Ethernet or your wifi connection. ifconfig command don't show your public IP address(if public and private are different).

What is nslookup command used for? ›

Description. 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.

How to reset IP address in cmd? ›

Windows 10/11
  1. Press Windows and R key at the same time to open the Run box.
  2. Type CMD. Then, hit Enter.
  3. Type ipconfig/release in the Command Prompt window. Press the Enter key.
  4. Type ipconfig/renew. Press Enter.

How do I reset my computer's IP address? ›

Windows 10
  1. Right-click the Start menu and select Command Prompt (Admin).
  2. Enter your admin username and password, if prompted.
  3. A command prompt window will open. At the flashing cursor, type ipconfig /release. ...
  4. Type ipconfig /renew to get a new IP address.
  5. Type exit to exit the command prompt.
Apr 19, 2021

Can I fix my IP address? ›

In Android Settings, tap Connections, then Wi-Fi. Tap Settings (the gear icon) next to your current network. Tap IP settings and choose Static. Then add your new IP address and tap Save.

How do I reset my network settings? ›

Here are the steps to reset network settings on your Android phone.
  1. Swipe up from the homescreen and open the app drawer.
  2. Find the Settings app (the one with a gear icon).
  3. Scroll down to System.
  4. Select Reset options. 2 Images. ...
  5. Select Reset Wi-Fi, mobile, & Bluetooth and tap Reset settings from the following menu.
Nov 18, 2022

How do I manually configure IP? ›

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.

What are the most common commands for network troubleshooting? ›

7 network troubleshooting commands
  • ping.
  • tracert/traceroute.
  • pathping.
  • ipconfig.
  • nslookup.
  • netstat.
  • route.
Aug 10, 2022

How do I change my IP to force dynamic? ›

Change to dynamic IP address (DHCP) from Settings
  1. Open Settings on Windows 10.
  2. Click on Network & Internet.
  3. Click on Ethernet or Wi-Fi.
  4. Click the network connection.
  5. Under the “IP settings” section, click the Edit button.
  6. Use the Edit IP settings drop-down menu and select the Automatic (DHCP) option.
Jan 11, 2023

Does netstat show hackers? ›

In a nutshell, the Netstat command lists all the open connections to and from your PC. Using Netstat, you'll be able to find out which ports on your computer are open, which in turn may assist you in determining if your computer has been infected by some type of malevolent agent.

How do I see all listening ports in Windows? ›

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

What is the Tracert command? ›

The TRACERT diagnostic utility determines the route to a destination by sending Internet Control Message Protocol (ICMP) echo packets to the destination. In these packets, TRACERT uses varying IP Time-To-Live (TTL) values.

Which command is used to view the routing cache information? ›

show arp. This command displays the Address Resolution Protocol (ARP) cache. The displayed results are not the total ARP entries.

How do I view ARP cache entries? ›

To do this from a Windows PC:
  1. Click Start -> Run.
  2. Type cmd and click OK to bring up the command line.
  3. Type arp -d to flush the ARP cache.
  4. Type arp -a to view the current ARP cache which should be empty.
  5. Type arp -s 192.168. 100.23 00-13-C6-00-02-0F (Note for UNIX the syntax is: arp -s 192.168. 100.23 00:13:C6:00:02:0F)
Jan 5, 2023

Should I Enable ARP? ›

ARP protection is really useful for large corporate LANs where you think there might be some hackers snooping on co-workers. On home LANs there is no real need to enable it.

What is my full IP address? ›

Go to your phone's settings. Select “About device.” Tap on “Status.” Here you can find information about your device, including the IP address.

Can you check the history of an IP address? ›

A random person curious about your internet history won't be able to find out what websites you've visited just based on knowing your IP address. But ISPs keep a record of IP address activity, which means that, in rare cases, they can share that information with others.

How can I check my IP address for free? ›

Running ipconfig on a Windows PC
  1. Click the Start menu.
  2. In Search/Run bar, type cmd or command, then press Enter. ...
  3. In the Command Prompt, type ipconfig or ipconfig/all, then press Enter. ...
  4. Using the available IP range determined by your router, run a ping command to an address in that range to confirm it is free for use.
Sep 6, 2019

Can the FBI find your IP address? ›

Can the FBI trace your IP address? Usually, the IP address is enough to trace the connection back to the ISP (Internet Service Provider). Generally, ISPs will work with law enforcement in cased of known fraud or theft. They usually require a warrant, but that is usually not difficult for law enforcement to get.

How do hackers find IP addresses? ›

Specialized IoT search engines like Rapid7 and MITRE track vulnerabilities known to specific devices. Using yet another IoT search engine like Shodan and ZoomEye, hackers can find devices connected to the internet, geolocation, port/operating system, services/host, and IP address.

How do I trace an IP address from a physical address? ›

There is no method of associating an exact physical geographical address or the computer associated with an IP address available to an end-user. If you need to report abuse by a person behind an IP address, contact local authorities or the ISP who's in control of that IP address.

What IP address can reveal? ›

What information does my IP address reveal? IP addresses do reveal your geolocation, but not your precise location like a home address does. IP addresses will also never reveal your name, phone number, or other precise personal information.

Can you tell someone's IP? ›

Use an IP lookup tool

Starting with the simplest way to find someone's IP address is to use one of the many IP lookup tools available online. Resources such as or offer tools to enter an IP address and search for its free public registry results.

Can Google see my IP? ›

IP addresses are roughly based on geography. This means that any website that you use, including, may get some information about your general area. Like many other Internet services, Google can use information about the general area that you're in to provide some basic services.


1. Basic Networking Commands (Part 1)
(Neso Academy)
2. Windows tips and tricks ipconfig command to see if Internet connection is there when you have proble
(Windows, computers and Technology)
3. What is the usage of ipconfig & Ipconfig /all command?
(Tinku Bhai)
4. How to Use the Ipconfig Command - Windows 10 - 2021
(Turbo Speed WiFi)
5. ipconfig windows Basic Networking Commands Tutorial Part-2 {2021}
(R.R technologies)
6. 40 Windows Commands you NEED to know (in 10 Minutes)
Top Articles
Latest Posts
Article information

Author: Jonah Leffler

Last Updated: 01/31/2023

Views: 5956

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.