How to use the ipconfig command to refresh and reset IP address

This article will show you how to use ipconfig to find IP addresses, reset IP addresses as well as allocate new IP addresses.

This article will show you how to use the ipconfig command to find the IP address in Windows and the advanced options of this command. The illustrations in the article were taken on Windows 10, so it may differ from other Windows versions. This guide also helps you find your MAC (hardware) address, DHCP server, DNS server, and other useful information. This information can be helpful when troubleshooting poor ResNet connectivity.

How to find IP address using ipconfig command

Step 1 . Enter cmd in the search box, then right-click Command Prompt and select Run as administrator . On Windows 10/11, you immediately have the Run as administrator option on the right side of the search results, select it.

How to use the ipconfig command to refresh and reset IP address Picture 1How to use the ipconfig command to refresh and reset IP address Picture 1

The User Account Control window appears, click Yes .

How to use the ipconfig command to refresh and reset IP address Picture 2How to use the ipconfig command to refresh and reset IP address Picture 2

Step 2 . At the C:> command prompt type ipconfig , then press Enter . You will see information about the IP address, subnet mask, and default gateway. If your address is 192.168.xx, 10.xxx or 172.16.xx, this is an internal IP address from the router or other device. The IP address that everyone sees is the router's. If you receive the address 169.254.xx, which is a Windows address, this means your network connection is not working properly.

How to use the ipconfig command to refresh and reset IP address Picture 3How to use the ipconfig command to refresh and reset IP address Picture 3

Step 3 . If you want more detailed information about your network connection, enter ipconfig /all at the command prompt. You can get similar information as ipconfig with the addition of MAC (hardware) address, DNS and DHCP server addresses, information for IP lease, etc. Same as above, if your IP address is you are 192.168.xx, 10.xxx or 172.16.xx, you get the internal IP address from the router or other device. If you receive the address 169.254.xx, this is a Windows address, which means your network connection is not working properly.

How to use the ipconfig command to refresh and reset IP address Picture 4How to use the ipconfig command to refresh and reset IP address Picture 4

Step 4 . If you have problems with the ResNet connection, you can release and renew the IP address to fix the problem. Type ipconfig /release and press Enter , then type ipconfig /renew and press Enter again. If the connection goes without any problems, you will receive a valid IP address, subnet mask, and default gateway in a few seconds.

How to use the ipconfig command to refresh and reset IP address Picture 5How to use the ipconfig command to refresh and reset IP address Picture 5

How to use the ipconfig command to refresh and reset IP address Picture 6How to use the ipconfig command to refresh and reset IP address Picture 6

Advanced ipconfig commands

  1. ipconfig/? : Displays a help message.
  2. ipconfig/all : Displays all configuration information.
  3. ipconfig/allcompartments : Displays information about all parts of the network.
  4. ipconfig/release : Release IPv4 address for specific adapter.
  5. ipconfig/release6 : Release for specific adapter.
  6. ipconfig/renew : Allocate a new IPv4 address to a specific adapter.
  7. ipconfig/renew6 : Allocate a new IPv6 address to a specific adapter.
  8. ipconfig/flushdns : Flush cache .
  9. ipconfig/registerdns : Refresh all DHCP leases and re-register DNS names.
  10. ipconfig/displaydns : Displays the contents of the DNS Resolver cache.
  11. ipconfig/showclassid : Shows all DHCP class IDs allowed for the adapter.
  12. ipconfig/setclassid : Edit DHCP class ID.

Wishing you success!

4 ★ | 1 Vote