Viewing Settings With Ipconfig
Read a device's address, gateway, and DNS from the command line.
Viewing Settings With Ipconfig is a free Network+ Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
What Ipconfig Shows
ipconfig (Windows) and ifconfig or ip (Linux/macOS) display a device's current network settings: its IP address, subnet mask, default gateway, and more. When you need to know how a machine is configured right now, this is the tool. Confirming the local settings is one of the first checks in almost any connectivity problem.
ipconfigThe Core Four
The essentials ipconfig reports are the IP address, the subnet mask, the default gateway, and (with /all) the DNS servers. Together these four define how the device communicates. A missing or wrong value in any of them, like a blank gateway, immediately explains many "no internet" complaints.
Verifying the IP Address
Checking the IP address confirms the device has a valid, expected address for its network. If the address belongs to the wrong subnet, the device cannot reach local peers correctly. Verifying the IP is a fast way to spot misconfiguration or a DHCP problem before chasing more complex causes.
Spotting APIPA
If you see an address starting with 169.254.x.x, that is APIPA (Automatic Private IP Addressing). It means the device asked for a DHCP address and got none, so it self-assigned a link-local address. APIPA is a clear sign of a DHCP failure: a dead DHCP server, a broken link to it, or exhausted addresses.
Checking the Gateway
The default gateway is the router the device uses to reach other networks. If the gateway is missing or wrong, local traffic may work but the internet will not. ipconfig lets you confirm the gateway is set and correct, a frequent culprit when a device can reach LAN hosts but nothing beyond.
Seeing DNS Servers
Running ipconfig /all reveals the configured DNS servers. If DNS is wrong or empty, names will not resolve even though raw connectivity works, the classic "ping by IP works, by name fails" pattern. Verifying DNS settings here pairs perfectly with ping and nslookup to confirm or rule out name-resolution issues.
ipconfig /allFull Details With /all
ipconfig /all shows far more than the basics: the MAC address (physical address), whether DHCP is enabled, the DHCP server's address, lease times, and DNS suffixes. This full view is invaluable for deeper diagnosis, letting you confirm where the device got its settings and how long they last.
Releasing the Lease
ipconfig /release tells the device to give up its current DHCP-assigned address. This is often the first half of a refresh when an address looks wrong or stale. After releasing, the device has no DHCP address until it requests a new one, so release and renew are usually used together.
ipconfig /releaseRenewing the Lease
ipconfig /renew asks the DHCP server for a fresh lease. Pairing release then renew forces the device to redo the DHCP process and pick up correct, current settings. This simple two-step fixes many addressing problems, especially after a DHCP server change or when a device is stuck with a bad lease.
ipconfig /renewFlushing the DNS Cache
ipconfig /flushdns clears the local DNS resolver cache. If a name recently changed its IP but your machine keeps using the old cached answer, flushing forces a fresh lookup. This resolves "the site moved but my PC still hits the old server" issues caused by stale cached DNS records.
ipconfig /flushdnsLinux and macOS Equivalents
On Linux and macOS, the modern command is ip address (older systems use ifconfig). DHCP renewal uses tools like dhclient, and DNS caches are cleared differently per system. The concepts match ipconfig exactly, only the commands differ. Knowing both the Windows and Unix tools makes you effective on any platform you meet.
ip address showQuick Check
Test your ipconfig knowledge.
Recap
You learned ipconfig. Key points:
- It shows IP, subnet mask, gateway, and (with /all) DNS.
- A 169.254.x.x address means APIPA and a DHCP failure.
- /release then /renew forces a fresh DHCP lease.
- /flushdns clears stale cached DNS answers.
- Linux/macOS use ip or ifconfig for the same job.
Frequently asked questions
Is the “Viewing Settings With Ipconfig” lesson free?
Yes — the full text of “Viewing Settings With Ipconfig” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.
What will I learn in “Viewing Settings With Ipconfig”?
Read a device's address, gateway, and DNS from the command line. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Network+ Academy?
No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Viewing Settings With Ipconfig” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Network+ Academy lesson?
Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Testing Reachability With Ping
- Mapping the Path With Traceroute
- Viewing Settings With Ipconfig
- Querying DNS With Nslookup