Logging into my own server results in Authentication servers are down
-
I have a 1.19.2 minecraft server that I used to run on a windows 10 pc without any problems. Due to some circumstances the server is now running on a windows server 2022 standard core edition.
Nobody can connect to the server. We all get the Authentication servers are down message, and in the log it will say:
[03:36:47] [User Authenticator #2/ERROR]: Couldn't verify username because servers are unavailable [03:36:47] [Server thread/INFO]: com.mojang.authlib.GameProfile@42bd5768[id=,name=Gucc,properties={},legacy=false] (/192.168.0.2:8147) lost connection: Authentication servers are down. Please try again later, sorry!
If I use java -showversion I get:
java version "17.0.5" 2022-10-18 LTS Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191) Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)
Could the java version or edition be the problem?
Im not very experienced in that area so Im wondering whats making the server fail to connect to the authentication servers, and if theres something I need to change or turn on.
I can ping the authentication servers. I've tried disabling the firewall, didnt work. It doesnt matter if I connect on lan or wan, same error.
If I turn off online mode I can connect, however my uuid when I connect and the server is in offline mode is different from my actual uuid, which triggers the whitelist and blocks me out.
If I also disable whitelist I can log in, but I will be logged in as another character(because of the different uuid), and wont have access to my regular inventory.
I really dont want to disable whitelist or online mode, so I hope theres somebody who can tell me whats wrong, or at least point me in a direction.
-
Turns out the date of the server was set to somewhere in the future, changing it to current time solved the problem