Dynamic Host Configuration Protocol is the way that most networked hosts figure out what their IP address on the network is going to be. This involves a DHCP server on the network, which keeps track of which hosts (identified by MAC address) are using which IP address, and leases out new IPs when needed.
References: