I used to frequently run into this problem in older versions of macOS, such as Mavericks. I always worked around it by navigating directly to the address of the wifi router.
option + click on the wifi icon in your menu bar, and look for the line that says
Router:
followed by an IP address (a series of dots and numbers). In a majority of cases, the address will be 192.168.1.1In your web browser, navigate to
http://
followed by the IP address from step 1. So in the most common case, I would navigate tohttp://192.168.1.1