Unable to connect to authserver.mojang.com [duplicate]

The Mojang servers often experience downtimes. Your issue is described in here. Just try waiting for a bit, and if that doesn't work, make sure to check your local firewall.

  1. This can be accessed by opening the Start Menu and typing "Windows Defender Firewall".

Windows Defender Firewall in the Start Menu

  1. Then click "Allow an app or feature through Windows Defender Firewall".

The button to click

  1. You should now be shown a list of applications with relevant tickboxes next to them.

The interface for the setting mentioned above

  1. At the top right, click "Change Settings" and scroll down until you find "Java(TM) Platform SE binary" (there will likely be quite a few).

Changing the settings

  1. Make sure the left tickbox on all instances is checked, now click the "OK" button at the bottom.

By doing this you have allowed JRE to connect to the internet. If this still doesn't work, try the following:

  1. Press win+r to open the "Run" prompt.
  2. Paste in C:/WINDOWS/SYSTEM32/DRIVERS/ETC and press "OK".
  3. Right-click on the file named "hosts" and open it with Notepad.
  4. Check that the no hosts on mojang.com are in the hosts file, if there are, remove their lines.
  5. Once you are done press ctrl+s THIS PART IS IMPORTANT and under the "Save a type" dropdown (below where you change the file name) click "All files".
  6. Making sure to have done the above and not changed the file name, click "Save".
  7. Try connecting to the auth servers now.