Reconnect to Wi-Fi when "Wi-Fi does not have an IP address"
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.