What is the process for a device automatically obtaining an IP address?

Technical