The ipconfig
command in Windows is used to display and manage the IP address configuration of your computer’s network interfaces.
Basic Usage
Open Command Prompt (type cmd
in the Start Menu) and type:
ipconfig
This will show information like:
-
IPv4 Address
-
Subnet Mask
-
Default Gateway
Common Options
Command | Description |
---|---|
ipconfig /all |
Displays detailed info about all network adapters (including MAC address, DHCP status, etc.). |
ipconfig /release |
Releases the current DHCP-assigned IP address. |
ipconfig /renew |
Requests a new IP address from the DHCP server. |
ipconfig /flushdns |
Clears the DNS resolver cache. |
ipconfig /displaydns |
Displays current DNS cache entries. |
Example Output
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . : home
IPv4 Address. . . . . . . . . . . : 192.168.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Would you like help troubleshooting a specific network issue using ipconfig
?