Name
Windows IP Configuration —
\windows\system32\ipconfig.exe
Synopsis
Display the current IP address(es) of the active connection(s).
To Open
Command Prompt →
ipconfig
Usage
ipconfig [/command] [adapter]
Description
The Windows IP Configuration tool, used without any options, displays your computer’s current IP address, subnet mask, and default gateway. Knowing your computer’s IP address is important for many reasons, such as allowing other users to connect to you using Remote Desktop Connection or calling you with Microsoft NetMeeting.
Windows IP Configuration takes the following parameters:
-
adapter Used with some of the commands listed below,
adapterspecifies the name of a network connection (see Network Connections, earlier in this chapter) on which to act.Adaptercan contain wildcards, such as*. Omitadapter(if allowed) to act on the default connection.-
/all Displays all available configuration information.
-
/release [adapter] Releases the IP address(es) for the specified connection, effectively disconnecting that connection from all network communication. Use
/renewto re-establish communication.-
/renew [adapter] Renews the IP address for the specified adapter, effectively reestablishing communication for the connection.
-
/flushdns Purges the DNS Resolver cache. See NSLookup, discussed earlier in this chapter, for details. See see
/displaydnsto show the contents of the DNS cache.-
/registerdns Refreshes all DHCP leases and reregisters DNS names
-
/displaydns Displays ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access