ipconfig
{{Short description|Console application program}}
{{lowercase title|ipconfig}}
{{Infobox software
| name = ipconfig
| logo =
| screenshot = Ipconfig win xp.png
| screenshot size =
| caption = Screenshot of ipconfig /all
output in Windows XP
| developer = Microsoft, ReactOS Contributors, Apple Inc.
| released =
| latest release version =
| latest release date =
| programming language = C
| operating system = Windows, ReactOS, macOS
| platform = Cross-platform
| genre = Command
| license = Windows, macOS: Proprietary commercial software
ReactOS: GPL-2.0-or-later
| website =
}}{{Not to be confused with|ifconfig}}
ipconfig
(standing for "Internet Protocol configuration") is a console application program of some computer operating systems that displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.{{cite web |url= https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig |title=ipconfig |date=16 October 2017 |work=Microsoft Docs |access-date=25 August 2020}}
Implementations
The command is available in Microsoft Windows, ReactOS, and in Apple macOS. The ReactOS version was developed by Ged Murphy and is licensed under the GPL.{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/applications/network/ipconfig/ipconfig.c|title = Reactos/Ipconfig.c at master · reactos/Reactos|website = GitHub}}
=Microsoft Windows, ReactOS=
The ipconfig
command supports the command-line switch /all
. This results in more detailed information than ipconfig
alone.
An important additional feature of ipconfig
is to force refreshing of the DHCP IP address of the host computer to request a different IP address. This is done using two commands in sequence. First, ipconfig /release
is executed to force the client to immediately give up its lease by sending the server a DHCP release notification which updates the server's status information and marks the old client's IP address as "available". Then, the command ipconfig /renew
is executed to request a new IP address.[http://www.wikihow.com/Refresh-Your-IP-Address-on-a-Windows-Computer Release and Renew Your IP Address][https://kb.wisc.edu/page.php?id=562 Windows – Displaying, Releasing and Renewing a DHCP Lease] Where a computer is connected to a cable or DSL modem, it may have to be plugged directly into the modem network port to bypass the router, before using ipconfig /release
and turning off the power for a period of time, to ensure that the old IP address is taken by another computer.[http://whatismyipaddress.com/change-ip whatsmyipaddress: How to change your IP address]
The /flushdns
parameter can be used to clear the Domain Name System (DNS){{Citation |title=Domain Name System (DNS) |work=Understanding IPv6 |pages=151–172 |url=http://dx.doi.org/10.1007/0-387-25614-8_9 |access-date=2024-03-06 |place=New York |publisher=Springer-Verlag |isbn=0-387-25429-3}} cache to ensure future requests use fresh DNS information by forcing hostnames to be resolved again from scratch.[http://blog.fmsinc.com/windows-8-1-pcs-connect-to-the-network-but-not-the-internet/ Windows 8.1 PCs Connect to the Network but not the Internet])
=Apple macOS=
ipconfig
in Mac OS X serves as a wrapper to the IPConfiguration agent, and can be used to control the Bootstrap Protocol and DHCP client from the command-line interface.[https://developer.apple.com/documentation/Darwin/Reference/ManPages/man8/ipconfig.8.html OS X developer manual] For example, you can release and renew an IP address if it happened to be assigned incorrectly by the DHCP server during the automated assignment process.{{Cite web |title=Ipconfig – network administration via the command line |url=https://www.ionos.ca/digitalguide/server/configuration/ipconfig/ |access-date=2022-08-23 |website=IONOS Digitalguide |language=en}} Like most Unix-based operating systems, Mac OS X also uses ifconfig
for more direct control over network interfaces, such as configuring static IP addresses. The Ifconfig command in Linux has been replaced by the IP command
See also
References
{{Reflist}}
Further reading
- {{Cite book|first=Æleen|last=Frisch|year=2001|title=Windows 2000 Commands Pocket Reference|publisher=O'Reilly|isbn=978-0-596-00148-3}}
- {{Cite book |first=William R. |last=Stanek |year=2008 |title=Windows Command-Line Administrator's Pocket Consultant, 2nd Edition |publisher=Microsoft Press |isbn=978-0735622623}}
- {{Cite book|first=Daniel J.|last=Barrett|year=2012|title= Off Macintosh Terminal Pocket Guide: Take Command of Your Mac|publisher=O'Reilly|isbn=}}
External links
{{Wikibooks|Guide to Windows Commands}}
- Windows
- [https://technet.microsoft.com/en-us/library/bb490921.aspx Microsoft TechNet Ipconfig article]
- [http://variableghz.com/2008/09/getting-serious-about-vnc/ VariableGHz article detailing ipconfig settings in Vista]
- [http://www.computerhope.com/ipconfig.htm Windows 95, 98, ME; Windows 2000 and XP MS-DOS shell syntax]
- [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig ipconfig] documentation for Windows
- Mac OS X
- {{man|8|ipconfig|Darwin|view and control IP configuration state}}
{{Windows commands}}
Category:Windows communication and services