The leader in industrial automation and control solutions

A DHCP client is a device or software function that automatically requests and receives its network settings, including an IP address, subnet mask, default gateway, and DNS servers, from a DHCP server. DHCP stands for Dynamic Host Configuration Protocol, the standard defined in RFC 2131 that automates IP address assignment on a network. Instead of a network administrator typing settings into every computer, printer, HMI, or switch, the DHCP client asks for them when it connects and the DHCP server provides them. This setting is often labeled “Enable DHCP” or “Obtain an IP address automatically.” On Maple Systems network switches and HMIs, enabling DHCP client mode lets the device receive an IP address dynamically instead of using a static IP.

Who This Guide Is For and Why It Matters

This guide is for controls engineers, system integrators, network administrators, and technicians setting up Ethernet devices such as industrial switches, HMIs, PLCs, and industrial PCs. If you’ve ever plugged in a new device and wondered how it got its address, or why it didn’t, this guide will help.

Here’s what to expect. We’ll explain what a DHCP client is, how DHCP works step by step, what information the client receives, how leases and DHCP reservations work, and the security risks to watch for. We’ll also cover when to use DHCP versus a static IP on industrial networks, and how DHCP client mode works on Maple Systems switches and HMIs, with links to Maple Systems technical notes.

Why it matters: a DHCP client automates network configuration so devices can join a network without manual entry, which saves time and avoids typos. But on industrial networks, where an HMI must always find its PLC at the same address, using DHCP without a plan can cause devices to lose communication. Understanding how DHCP works helps you choose the right approach for each device.

What Information Does a DHCP Client Receive?

When a DHCP client joins a network, the DHCP server typically provides:

  • IP address: a unique IP address identifies the device on the network.
  • Subnet mask: defines which IP addresses are part of the local network.
  • Default gateway: the router that sends traffic from the local network to other networks or the internet.
  • DNS server addresses: translate domain names into IP addresses for internet access.
  • Lease time: how long the client may use the address before renewing it.

DHCP clients receive IP addresses dynamically from a defined scope, or pool, of addresses that the server manages.

How DHCP Works: The DORA Process

DHCP uses the DORA process for IP assignment. The DORA process includes four messages: Discover, Offer, Request, and Acknowledge.

  1. Discover: the DHCP client sends a broadcast message to find DHCP servers on the network. Because the client doesn’t have an IP address yet, it sends to the broadcast address 255.255.255.255.
  2. Offer: one or more DHCP servers respond with an offer that includes an available IP address and settings from their pool.
  3. Request: the client broadcasts a request to accept one offer. If multiple servers made offers, this tells the others their offers weren’t chosen.
  4. Acknowledge: the selected server sends an acknowledgment, and the client configures its network interface with the received settings.

DHCP clients use UDP port 68 to send and receive messages, and DHCP servers use UDP port 67.

DHCP Leases and Renewal

DHCP assigns IP addresses for a limited period known as a lease. DHCP clients can renew their IP addresses before lease expiration, usually starting at the halfway point of the lease, so a device can keep the same address as long as it stays online. If a device leaves the network, its lease eventually expires and the address returns to the pool for another device. A DHCP client can also switch networks and request new configurations automatically, which is why laptops and mobile devices connect so easily on different networks.

DHCP Servers and DHCP Relay

DHCP servers can run on routers, firewalls, Windows or Linux servers, or managed switches. By centrally managing lease assignments, a DHCP server prevents two DHCP clients from receiving the same address.

DHCP Discover messages are broadcasts, and routers don’t forward broadcasts between subnets. When the DHCP server is on a different subnet or VLAN, a DHCP relay agent forwards client requests to the server. On Maple Systems network switches, DHCP Relay lets the switch pass client requests to a remote DHCP server over a different VLAN, enabling centralized IP address management across multiple subnets.

DHCP Reservations vs Static IP Addresses

Industrial devices often need predictable addresses. An HMI’s Ethernet driver, a SCADA system, or a remote access tool usually connects to a device by IP address, so if that address changes, communication can stop. There are two ways to keep addresses consistent:

  • DHCP reservations: the DHCP server always assigns the same reserved IP address to a specific device, identified by its MAC address. The device stays a DHCP client, but its address never changes. DHCP reservations prevent IP address conflicts and keep IP management centralized.
  • Static IP: the address is typed directly into the device, which doesn’t use DHCP at all. It’s simple and doesn’t depend on a server, but the network administrator must track addresses manually to avoid conflicts.
ApproachBest forProsCons
Dynamic DHCPLaptops, mobile devices, temporary equipmentAutomated, no manual setupAddress can change
DHCP reservationPLCs, HMIs, printers, switches on managed networksConsistent address, central controlDepends on the DHCP server
Static IPIsolated machine networks, critical control devicesNo server needed, always the sameManual tracking, risk of conflicts

Many plants use static IPs or DHCP reservations for control devices and dynamic DHCP for everything else.

DHCP Security and Troubleshooting

DHCP is convenient, but it has known risks:

  • Rogue DHCP servers: rogue DHCP servers pose security threats. An unauthorized server, even a misconfigured consumer router, can hand out wrong addresses or redirect traffic.
  • DHCP starvation attacks: DHCP starvation attacks can disrupt service by flooding the server with fake requests until its address pool runs out.
  • Server problems: when a client can’t obtain an IP address, it may indicate DHCP server issues, such as a full pool, a server outage, or a blocked relay.

On Maple Systems network switches, DHCP Snooping helps protect against rogue servers and DHCP spoofing attacks by allowing DHCP responses only from trusted ports.

What Happens When No DHCP Server Responds?

If a DHCP client can’t reach a server, many devices assign themselves an APIPA (Automatic Private IP Addressing) or link-local address in the 169.254.x.x range. A 169.254 address is a clear sign that the device didn’t receive a DHCP lease. Check cables, VLANs, relay settings, and whether the DHCP server is running.

DHCP Client on Maple Systems Network Switches

Maple Systems Lite-Managed and Fully Managed industrial network switches ship with a default IP address of 192.168.100.254. You can keep a static IP, or enable DHCP client mode so the switch requests its IP address from a DHCP server on your network. Using DHCP client mode, ideally with a DHCP reservation, makes it easier to manage many switches from a central server.

Maple Systems switches also include DHCP features to manage and protect DHCP on your network, configured through the MapleLink and MapleLink Lite interface:

  • DHCP Relay: forwards client requests to a DHCP server on another VLAN or subnet.
  • DHCP Snooping: blocks rogue DHCP servers and DHCP spoofing.

See the managed network switch FAQs for first-time setup steps.

DHCP Client on Maple Systems HMIs

Maple Systems HMIs are also DHCP clients by default. They ship from the factory set to “Obtain an IP Address Automatically,” which works when the HMI is connected to a network with a DHCP server that manages the IP addresses.

To use a static IP instead, open the HMI’s System Settings, go to the Network tab, and either select “IP address get from below” (HMI5000 series) or turn off the “Obtain an IP address automatically” slider (cMT series), then enter the IP address and subnet mask. For step-by-step instructions, see:

Wi-Fi HMI models set both the Wi-Fi module and Ethernet port to request an IP address from a DHCP server. If no DHCP server is available, see How to Connect an HMI to Wi-Fi When a DHCP Server Is Not Available.

Frequently Asked Questions About DHCP Clients

What does a DHCP client do?

A DHCP client automatically requests an IP address, subnet mask, default gateway, and DNS servers from a DHCP server, so the device can join the network without manual configuration.

What port does a DHCP client use?

DHCP clients use UDP port 68, and DHCP servers use UDP port 67.

What is the difference between a DHCP client and a DHCP server?

A DHCP client requests network settings. A DHCP server manages a pool of addresses and assigns them to clients.

Should industrial devices use DHCP or a static IP?

Control devices like PLCs and HMIs usually need a consistent address, so use a static IP or a DHCP reservation. Laptops and temporary devices work well with dynamic DHCP.

Why does my device have a 169.254 address?

A 169.254.x.x address means the device is set as a DHCP client but didn’t receive an address from a DHCP server.

Do Maple Systems switches support DHCP client mode?

Yes. Maple Systems managed switches can use a static IP (default 192.168.100.254) or DHCP client mode, and they support DHCP Relay and DHCP Snooping.

For Further Reading

TN5127: TCP Port Usage of HMI and cMT Products (Maple Systems)

Maple Systems Industrial Network Switches

MapleLink and MapleLink Lite Switch Interface (Maple Systems)

IP Addresses of an HMI and a PC (Maple Systems Tech Note)

How Do I Change the IP Address of My HMI? (Maple Systems)

Landing Page

Manuals & Guides

Product Pages

Tech Notes

Solutions

Videos

Require additional support