Skip to content

How-ToOS

How to Use ipconfig in Windows 11: Find Your IP, Renew It and Flush DNS

What the most useful ipconfig commands do in Windows 11, from finding your IP address and default gateway to releasing and renewing a DHCP address and flushing the DNS cache, based on Microsoft's documentation.

By , Systems & Technical Editor

2 min read

How to Use ipconfig in Windows 11: Find Your IP, Renew It and Flush DNS

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

ipconfig

Shows the IPv4 and IPv6 addresses, subnet mask and default gateway for all adapters

ipconfig /all

Shows the full TCP/IP configuration for all adapters

ipconfig /release

Releases the current DHCP configuration and discards the IP address

ipconfig /renew

Renews the DHCP configuration

ipconfig /flushdns

Flushes and resets the DNS client resolver cache

ipconfig /displaydns

Shows the contents of the DNS client resolver cache

ipconfig /registerdns

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.

To target one adapter, add its name as shown by ipconfig. Put names containing spaces in quotation marks, for example ipconfig /renew "Ethernet 2". You can also use the asterisk wildcard: Wi* matches every adapter whose name starts with "Wi". The IPv6 equivalents are /release6 and /renew6.

Flush the DNS cache

Windows keeps a DNS client resolver cache of recently looked-up names, plus entries preloaded from the local Hosts file, so it can resolve frequently used names quickly. When you're troubleshooting DNS name resolution problems, run ipconfig /flushdns. You can also run it after you've changed your DNS server. Microsoft describes this as a DNS troubleshooting step that discards negative cache entries and other dynamically added entries. To see what's in the cache before you clear it, use ipconfig /displaydns.

Our verdict

ipconfig is a quick built-in tool for checking your IP address and gateway, getting a fresh DHCP address and clearing stale DNS entries. Start with ipconfig, use /release and /renew for address problems, and /flushdns for name lookup problems. If problems continue, try our guides to resetting network settings in Windows 11 and fixing high ping and packet loss.

The bottom line

ipconfig is a quick built-in tool for checking your IP address and gateway, getting a fresh DHCP address and clearing stale DNS entries. Start with `ipconfig`, use /release and /renew for address problems, and /flushdns for name lookup problems. If problems continue, try our guides to resetting network settings in Windows 11 and fixing high ping and packet loss.

Sources

  1. 01Microsoft Learn, ipconfig

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

TP-Link Archer 8 Ultra: The First Wi-Fi 8 Router Is On Sale in the UK

News

TP-Link Archer 8 Ultra: The First Wi-Fi 8 Router Is On Sale in the UK

TP-Link's Archer 8 Ultra (Archer BN800), the first Wi-Fi 8 router on sale in the UK, launched on 15 November 2026 at about £899.99: tri-band 19Gbps Wi-Fi 8, 18 antennas, two 10Gbps and four 2.5Gbps ports, but few devices support Wi-Fi 8 yet and the standard isn't final.

Eleanor Shaw6 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min