A device acquires an IP address from a DHCP server to connect to a network. The device broadcasts a DHCP discover message and waits for a DHCP offer with an available IP address. The device then sends a request to the DHCP server to accept the offer and assign the IP address. The DHCP server acknowledges and configures the device with the IP address and other network settings for a lease period, allowing the device to connect to the network.