This communication of address will typically occur over the network, so there is a chicken and egg issue to overcome. Since your computer is new to the network, something must allocate an address, and must communicate that address to the computer.
Who is the new computer? All network devices need an address. What is it that needs to happen for a computer to get net access? You can start the other way around asking the question.