What DHCP Hands Out
Learn the address, mask, gateway, and DNS a device receives.
What DHCP Hands Out is a free Network+ Academy lesson on CoddyKit — lesson 1 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.
A Quick Welcome
DHCP (Dynamic Host Configuration Protocol) is the service that lets a device join a network without anyone typing in numbers by hand. When your laptop connects to Wi-Fi, it has no IP address yet. DHCP automatically gives it everything it needs to communicate. Without it, an administrator would have to configure every phone, printer, and PC manually. In this lesson you will learn the four key settings DHCP delivers and why each one matters.
The IP Address
The first thing DHCP hands out is an IP address (Internet Protocol address). This is the unique number that identifies your device on the local network, like 192.168.1.50. No two active devices on the same network can share the same address, or their traffic would collide. DHCP keeps a list of available addresses and picks a free one for each device automatically, so you never end up with a clash.
The Subnet Mask
DHCP also provides a subnet mask, such as 255.255.255.0. The mask tells your device which part of the IP address identifies the local network and which part identifies the host. With it, your device knows whether another address is a near neighbor it can reach directly, or a distant one it must send through a router. Without the right mask, a device cannot tell local traffic from remote traffic.
The Default Gateway
The default gateway is the address of the router that connects your local network to everything else, including the internet. DHCP supplies this so your device knows where to send traffic destined for other networks. Think of it as the exit door of your building: any packet bound for an address outside your subnet is handed to the gateway, which forwards it onward toward its destination.
The DNS Server
DHCP also delivers one or more DNS (Domain Name System) server addresses. DNS translates human-friendly names like example.com into the numeric IP addresses computers actually use. When you type a website name, your device asks the DNS server provided by DHCP to look up the matching address. Without a DNS server, you could still reach numeric addresses, but names would not resolve and web browsing would mostly fail.
Putting the Four Together
These four settings work as a team. The IP address and subnet mask define who you are and your local neighborhood. The default gateway is your route to the wider world. The DNS server turns names into addresses. Deliver all four correctly and a device can browse, stream, and talk to servers anywhere. Miss even one and connectivity breaks in confusing ways.
Seeing the Settings
On Windows you can view the settings DHCP gave you with a single command. The output lists your address, mask, gateway, and the DNS servers in use. On Linux or macOS similar tools show the same details. Checking these values is the first troubleshooting step when a device cannot connect: if any field is blank or wrong, DHCP is a likely suspect.
ipconfig /all
IPv4 Address . . . : 192.168.1.50
Subnet Mask . . . : 255.255.255.0
Default Gateway . : 192.168.1.1
DNS Servers . . . : 192.168.1.1Lease Time
DHCP does not give an address forever. Each assignment is a lease with a time limit, often 8 or 24 hours. When the lease is about halfway expired, the device quietly asks to renew it. Leases let a network reuse addresses: a guest who leaves frees their address for someone new once the lease ends. This keeps a limited pool of addresses serving many short-lived devices.
Optional Extras
Beyond the core four, DHCP can deliver many options. Common extras include the domain name, NTP (Network Time Protocol) servers for clock sync, and the address of a TFTP server that phones use to download their configuration. These options are numbered, and administrators enable only the ones their devices need. The big four, though, are almost always present because basic connectivity depends on them.
Why Automation Wins
Imagine setting four values by hand on every device in a 500-person office, then fixing each one when the gateway changes. DHCP removes that burden. Change a setting once on the server and every device picks it up at its next renewal. This is why nearly all networks, from home routers to large enterprises, rely on DHCP for client devices, reserving manual setup mostly for servers and infrastructure.
Recognizing DHCP at Work
You usually never notice DHCP because it works silently in the background. But knowing what it hands out makes troubleshooting far easier. If a device has an address but no internet, suspect the gateway or DNS. If names fail but numbers work, suspect DNS. If two devices conflict, suspect the address pool. Understanding the four settings turns vague connection problems into specific, checkable causes.
Quick Check
Test what DHCP delivers.
Recap
DHCP automates network setup. Its four core deliverables are the IP address (who you are), the subnet mask (your local neighborhood), the default gateway (your route to other networks), and the DNS server (name-to-address lookup). Each assignment is a time-limited lease that devices renew. Optional extras like time and domain settings can also be delivered. Knowing these values makes connection problems quick to diagnose.
Frequently asked questions
Is the “What DHCP Hands Out” lesson free?
Yes — the full text of “What DHCP Hands Out” 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 “What DHCP Hands Out”?
Learn the address, mask, gateway, and DNS a device receives. 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 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “What DHCP Hands Out” 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.