A computer must have an IP address when -
connecting to a home network router
connecting to a Wi-Fi hotspot
communicating with another computer using TCP
all of the above