Reconnect to Wi-Fi when "Wi-Fi does not have an IP address" I came into the office today with my MacBook Pro and usually my Wi-Fi automatically connects to the network, but instead it is constantly searching. 

If I go to System Preferences > Network > Wi-Fi, there is a solid yellow circle and the text reads "Wi-Fi does not have an IP address and cannot connect to the Internet". 

I've tried turning off Wi-Fi and restarting the computer but neither has worked.
In the Network Preferences, click "Advanced ..." and remove the WiFi network from the 'Preferred Networks'. This will make macOS forget the network, after which you can attempt to connect again. macOS will build up the connection 'from scratch' and won't rely on any cached settings. I have to use the same trick once in a while for our corporate WiFi network.