ipconfig is a command built into Windows that shows your network settings and can refresh them. It's useful when you're troubleshooting connection or DNS problems. This guide explains the most useful commands, based on Microsoft's official ipconfig documentation, which lists Windows 11 and Windows 10 among supported versions. It hasn't been tested by us on specific network setups.
How to open ipconfig
Type the commands below at a command prompt and press Enter. To see the built-in help, type ipconfig /?.
The commands you'll use most
Command | What it does |
|---|---|
| Shows the IPv4 and IPv6 addresses, subnet mask and default gateway for all adapters |
| Shows the full TCP/IP configuration for all adapters |
| Releases the current DHCP configuration and discards the IP address |
| Renews the DHCP configuration |
| Flushes and resets the DNS client resolver cache |
| Shows the contents of the DNS client resolver cache |
| Starts manual dynamic registration of the PC's DNS names and IP addresses |
Find your IP address and router
Type ipconfig on its own. For each adapter, such as Ethernet or Wi-Fi, you'll see its IPv4 and IPv6 addresses, the subnet mask and the default gateway. Use ipconfig /all when you need more detail, as it shows the full configuration for every adapter, including logical ones as well as physical network cards.
Get a new IP address with release and renew
If your PC gets its address automatically (DHCP), you can ask for a fresh one. Run ipconfig /release first, then ipconfig /renew. Microsoft notes that /release disables TCP/IP on adapters set to obtain an address automatically, so run /renew straight afterwards. /renew only works on adapters configured to obtain an IP address automatically, so if you've set a static IP it won't apply.




