MS-DOS Commands :: ipconfig
Displays internet configuration, including IP address.
Tip: To display your IP address, simply type: ipconfig
Note: If you are using a router to connect to the internet, this command displays your local IP address. It does not display the IP address that the outside world sees. Instead, use getip or visit WhatIsMyIP.com or checkip.dyndns.org.
There are a few options you can use with the ipconfig command. For the complet list of options, type
The following examples demonstrate some of the more useful options:
Displays information about all the network adapters. Add flag /all to display detailed information; otherwise, displays only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP.
Used to clear dns, that is, flush the local DNS resolver cache.
Renews the IP address for all network adapters.
USAGE: ipconfig [/? | /all | /renew [adapter] | /release [adapter] | /flushdns | /displaydns | /registerdns | /showclassid adapter | /setclassid adapter [classid] ] where adapter Connection name (wildcard characters * and ? allowed, see examples) Options: /? Display this help message /all Display full configuration information. /release Release the IP address for the specified adapter. /renew Renew the IP address for the specified adapter. /flushdns Purges the DNS Resolver cache. /registerdns Refreshes all DHCP leases and re-registers DNS names /displaydns Display the contents of the DNS Resolver Cache. /showclassid Displays all the dhcp class IDs allowed for adapter. /setclassid Modifies the dhcp class id. The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP. For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed. For Setclassid, if no ClassId is specified, then the ClassId is removed. Examples: > ipconfig ... Show information. > ipconfig /all ... Show detailed information > ipconfig /renew ... renew all adapters > ipconfig /renew EL* ... renew any connection that has its name starting with EL > ipconfig /release *Con* ... release all matching connections, eg. "Local Area Connection 1" or "Local Area Connection 2"
(Enlarge: ipconfig /?)