Which part of the network assigns an IP address?
IP addresses are always assigned manually
the modem using TCP/IP protocol
the gateway/router using DHCP
the device's NIC based on the MAC address