Command Reference

ipconfig

Command Prompt Networking Beginner Risk: Moderate
Back to Command Library

Summary

Displays TCP/IP configuration details for Windows network adapters.

Syntax

ipconfig [options]

Examples

ipconfig

Displays a basic summary of active network adapters.

ipconfig /all

Displays detailed configuration, including DNS, DHCP, MAC address, and lease information.

ipconfig /release

Releases the current DHCP-assigned IPv4 address.

ipconfig /renew

Requests a new IPv4 address from the DHCP server.

ipconfig /flushdns

Clears the local DNS resolver cache.

Permissions

Administrator required: No

Viewing configuration does not usually require administrator access. Some repair operations may require an elevated Command Prompt.

Risk and Impact

Risk level: Moderate

Changes the system: Yes

The release option temporarily removes the adapter's DHCP address and may interrupt network access until the address is renewed.

Supported Platforms

Windows 10 Windows 11 Windows Server

Important Output Fields

IPv4 Address

The current IPv4 address assigned to the network adapter.

Subnet Mask

Identifies which portion of the address represents the local network.

Default Gateway

The router or device used to reach other networks.

DNS Servers

The servers used to translate hostnames into IP addresses.

DHCP Enabled

Shows whether the adapter receives its configuration automatically from DHCP.

Physical Address

The MAC address assigned to the network adapter.

Common Errors

Media disconnected

The adapter does not currently have an active network connection.

Access is denied

The selected option may require an elevated Command Prompt.

Related Articles

These Gnojo articles use or explain this command.

Networking Beginner

Checking an Ethernet Connection

A wired Ethernet connection depends on a secure physical connection between the computer and the network device. A loose, damaged, or disconnected cable can prevent the computer from reaching the network.

View Article
Networking Beginner

How to Refresh DNS and Restart Windows

Use this article to perform the VPN workflow's bounded DNS refresh. It clears only the local Windows DNS resolver cache with ipconfig /flushdns, then restarts Windows and retests the VPN. It does not reset Winsock or TCP/IP and does not release or renew network addressing.

View Article
Networking Beginner

Inspect Windows Network Configuration with ipconfig

The ipconfig command displays Windows TCP/IP configuration. It can show addresses, subnet masks, default gateways, DNS servers, and DHCP details that help diagnose connectivity problems. Its release, renew, and flush options change network state and should be used only when the symptom justifies them.

View Article

Official References

ipconfig

Microsoft Learn · Official Documentation

Open Source