Windows 11 doesn’t include a built-in DHCP server by default, but you can install and configure the Microsoft Network Connections DHCP Server role service to assign IP addresses automatically to devices on your local network. This avoids manual IP configuration errors and simplifies network management—critical for home networks with multiple devices. Before proceeding, ensure you have network admin rights (local or domain) and that other DHCP services (like a router’s built-in DHCP) won’t conflict. If you’re using a router as your DHCP server, skip this setup.

What You’ll Need

  • A Windows 11 Pro or Enterprise edition (Home edition lacks DHCP server support by design).
  • Administrator privileges on the machine you’ll host the DHCP server.
  • At least one static network adapter (wireless adapters may require additional configuration).
  • A range of IP addresses reserved for DHCP scope (e.g., 192.168.1.100–150 if your gateway is 192.168.1.1).
  • Internet access to download the DHCP service (though it can also be installed locally via Windows features).
  • Optional: A backup plan if the DHCP server fails (e.g., a router’s DHCP or manual IP assignments).

Step-by-Step

  1. Enable the DHCP Server feature: Open Settings > Apps > Optional Features. Under "Add a feature," search for "DHCP Server" and select it. Click Next until the installer completes. *Note: This may prompt for a Windows Server license if you don’t have a valid one (some licenses include DHCP server support).*
  2. Install the DHCP Server role: In the Optional Features window, click DHCP Server under "Features" and click Install. The installer will download and prepare the components. This step may take several minutes.
  3. Configure DHCP Server: Press Windows + R, type dnsmgmt.msc, and press Enter to open the DHCP Management Console. Right-click the Local Server and select Manage under "DHCP Server." This opens the DHCP Server Administration tool.
  4. Add a new scope: In the DHCP console, expand IPv4 Scopes and right-click New Scope. Enter a name for the scope (e.g., "HomeNetwork") and configure:
    1. Under IPv4 Scope, set:
      • Start IP address: Your gateway’s IP + 1 (e.g., if gateway is 192.168.1.1, start at 192.168.1.100).
      • End IP address: The highest reserved IP in your range (e.g., 192.168.1.150).
      • Subnet mask: Match your network’s subnet mask (e.g., 255.255.255.0).
    2. Under Options, ensure these default values are correct:
      • Default lease time: 8 days (adjust as needed).
      • Maximum lease time: 1 week.
      • DNS servers: Enter your DNS servers (e.g., 8.8.8.8, 8.8.4.4 for Google DNS).
      • Domain name: Your local domain name (e.g., "home.local").
      • Preferred IP address: Your gateway’s IP (usually the first address in the range).
    3. Under Reservations, add static assignments if needed (e.g., for a laptop or printer). Example: Enter the device’s MAC address and IP (e.g., 192.168.1.200).
  5. Start the DHCP Server service: In the DHCP console, right-click Local DHCP Server > Start. Verify the service is running by checking the status bar at the top of the console.
  6. Test DHCP assignment: On a device connected to your network, reset its network settings (e.g., via Network Settings > Ethernet/Wireless > Reset network settings). Reconnect, and the DHCP server should assign an IP automatically. Check with ipconfig /all on the client to confirm the address is within your scope range.

Common Mistakes

  • Skipping the DHCP Server feature: Some users install only the optional features without enabling the full DHCP Server role, leading to incomplete tools. Fix: Re-run the feature installer for DHCP Server and ensure "DHCP Server" appears under "Features."
  • Incorrect subnet mask or IP range: If devices fail to get IPs, double-check the subnet mask (should match your router’s) and ensure the start/end addresses are sequential and within your gateway’s broadcast range (e.g., 192.168.1.0–255).
  • Lease times too short: Clients may drop connections if the lease (default 8 days) is shorter than their expected uptime. Increase the default lease time (e.g., to 30 days) if stability is critical.
  • Forgetting reservations for critical devices: Printers or laptubs with fixed IPs must be manually assigned via reservations to avoid conflicts. Test: Delete a reservation and watch if the device loses its IP.
  • Running multiple DHCP servers: Conflict arises if a router DHCP and your Windows DHCP both assign IPs. Fix: Disable router DHCP temporarily or configure a single DHCP source.

Tips

  • Use Windows Firewall to allow DHCP traffic: Open Windows Defender Firewall > Advanced Settings > Inbound Rules, add a new rule for TCP port 67 (DHCP) and UDP port 68 (DHCP client). This ensures clients can request IPs.
  • Monitor DHCP leases: Regularly check the DHCP console’s IPv4 Scopes tab to see which IPs are in use and which are unused (leaked IPs can cause conflicts).
  • Avoid overlapping scopes: If you ever need to expand your network, ensure new scopes don’t overlap with existing ones. Tools like ipconfig /all on clients can reveal current assignments.
  • Backup the DHCP configuration: Before making changes, export the DHCP scope settings via the console’s File > Export option. This saves time if you need to restore later.
  • Test with a single client first: Assign a DHCP scope to a small range (e.g., 10 IPs) and test only one device before scaling up to avoid overloading the server.

Troubleshooting

  1. DHCP server won’t start: Check the Services list (via Services.msc) for "DHCP Server." If stopped, start it manually. If frozen, run net stop dhcp > net start dhcp in Command Prompt as Administrator. *If errors appear, check the Event Viewer (Event Viewer > Windows Logs > Application) for details.*
  2. Clients can’t get IPs: Verify the DHCP service is running and the correct scope exists. Check the client’s network adapter settings: ensure Obtain an IP automatically is enabled (not "Use a static IP"). Restart the client device to force a refresh.
  3. IP conflicts: Use netsh interface ip show config on a client to list all assigned IPs. If duplicates exist, adjust scopes or reservations. For long-term fixes, consider a DHCP relay agent (e.g., Windows DHCP Relay) if your network spans multiple subnets.
  4. Slow performance: If many devices request IPs quickly, increase the default lease time (e.g., 30 days) or reduce the scope size. Avoid overloading the server by limiting scope size to 50–100 IPs per scope.
  5. DHCP service crashes: Reinstall the DHCP Server feature:
    1. Uninstall the DHCP Server feature via Optional Features.
    2. Restart the machine.
    3. Reinstall the feature as shown in Step 1.
    Note: This may reset your configurations—backup them first.

Frequently Asked Questions

Can I use Windows 11 Home for DHCP?

Windows 11 Home lacks the DHCP Server role by design. Workaround: Use a home router’s DHCP or manually configure IPs on devices.

How do I check if DHCP is working?

Run ipconfig /all on a client. Verify the IP is within your scope range (e.g., 192.168.1.x) and the gateway is your DHCP server’s address.

What if my devices can’t reach the internet?

Check the DNS servers in your DHCP scope. Replace them with public DNS (e.g., 8.8.8.8, 1.1.1.1) or verify your router’s DNS settings match the DHCP-assigned ones.

Do I need a static IP for the DHCP server?

Yes. Assign a static IP to the server’s network adapter (e.g., 192.168.1.1) before enabling DHCP to avoid address conflicts.

How do I remove a DHCP scope?

Right-click the scope in the DHCP console > Delete. Confirm the action, then restart the DHCP service.

Can I use this with a guest network?

No. The DHCP server is tied to the main network. For guests, configure a separate router with its own DHCP scope and subnet.

What’s the maximum number of IPs I can assign?

The default scope limit is 252 IPs per range. For larger networks, use multiple scopes or a DHCP relay.