You can restart your Mac to fix many Wi-Fi issues. It will automatically renew the IP address it was assigned when joining the Wi-Fi network. You can also manually renew the IP address by navigating to the network settings on your iMac.