The ipconfg command in Windows has many useful and intelligent functions, and here we will analyze each one of them, helping you to solve problems and to know more about your machine.
On Windows, ipconfig is a feature designed to run from the command prompt. This utility allows you to obtain the IP address information of a Windows computer, as well as control over active TCP/IP connections. Ipconfig replaces the older winipcfg command.
Winipcfg.exe has been included as part of the standard installation of Windows, up to Windows ME. When Windows XP came out, winipcfg was replaced by two methods that do the same thing. Ipconfig.exe, which uses the traditional command-line application displaying information via the text interface. The other has a graphical user interface (GUI) form that makes it friendlier and is able to display individual information for each network connection.
Table of Contents
How and when to use ipconfig in Windows
At the command prompt, type ipconfig to run the utility with the default options. The output of the default command contains the IP address, netmask, and gateway for all physical and virtual network adapters.
- From the Start menu and enter the command in the box.
- Right-click Command Prompt, and then click Run as administrator.
- When a User Account Control window appears, click Continue.
- At the C:> prompt, type ipconfig. Then press Enter.
- Your default IP address, subnet mask, and gateway will be returned to you.
If your IP address is 192.168.xx, 10.xxx, or 172.16.xx, you will receive an internal IP address from a router or other device. The IP address the world sees is that of the router. If you are receiving a 169.254.xx address, this is a Windows address which usually means that your network connection is not working properly.
ipconfig /?
The ipconfig command supports several command line options. The ipconfig /? displays the set of available options.
Ipconfig /all
If you want more detailed information about your network connection, type ipconfig /all at the Windows command prompt. Here you can get the same information as ipconfig with the addition of your MAC address (hardware), DNS and DHCP server addresses, IP lease information, etc.
If you are having problems with your connection to it, it can be fixed by releasing and renewing your IP address.
- Type ipconfig /release at the prompt and press enter.
- Then type ipconfig /renew and press enter again.
If your connection is correct, a valid IP address, subnet mask, and default gateway will be generated after a few seconds.
pconfig /allcompartments
Displays all bays and their settings.
ipconfig /release
This option terminates all active TCP/IP connections on all network adapters and frees these IP addresses for use by other applications.
Ipconfig /release can be used with specific Windows connection names. In this case, the command affects only the specified connections, not all connections.
The command accepts full connection names or wildcard names. Examples:
ipconfig /release "Local Connection 1" ipconfig /release *Local*
ipconfig /release6
Sends a DHCPRELEASE message to the DHCPv6 server, which releases the current DHCP configuration and discards the IPv6 address setting for all adapters or for a specific adapter if the adapter parameter is included.
ipconfig /renew
This option resets the TCP / IP connections on all network adapters. As with the / release option, ipconfig /renew has an optional connection name specifier.
Both /renew and /release options only work on clients configured for Dynamic Addressing (DHCP).
ipconfig /renew6
Renew the DHCPv6 configuration for all adapters or for a specific adapter if the adapter parameter is included. This parameter is available only on computers with adapters configured to obtain an IPv6 address automatically.
ipconfig /flushdns
Sometimes you can change the DNS address, but the change does not occur immediately. The /flushdns command tells Windows that the address has been modified.
ipconfig /displaydns
Displays the contents of the DNS client resolver cache. The DNS client service uses this information to resolve queried names frequently quickly, before querying its configured DNS servers.
ipconfig /registerdns
Starts manual dynamic registration for DNS and IP addresses configured on a computer.
ipconfig /setclassid
Configures the DHCP class ID of a specific adapter. To set the DHCP class ID for all adapters, use (*).
ipconfig /showclassid
Displays the DHCP class ID of a specific adapter. To see the DHCP class ID for all adapters, use (*).
And so, did you enjoy knowing these ipconfig commands for Windows? Do you know any other interesting commands? Share your feedback in the comments.