4

I am currently hosting a server on a VPS running debian and when I try to connect to the server my client gets an error saying the authentication servers are down, and the server displays an error saying it is unable to connect to the authentication servers. I have checked the status of the servers and Mojang says they are up and running. I suspect it has something to do with the fact it is a vps and i need to add the authentication servers to a file somewhere in the OS to allow the server to connect I am just unsure where and how.

3
  • 1
    Has it ever worked in the past?
    – Royce
    Jan 30, 2015 at 22:34
  • 1
    No, the server itself had been copied from a windows machine and when it was on that it worked. Jan 30, 2015 at 22:48
  • 2
    If you connect to your VPS directly (not with the MC client) and try to ping the Minecraft authentication servers from within it, what is the result? Mar 2, 2015 at 19:14

6 Answers 6

4

Some folks use VPS servers to try and 'crack' all kinds of authentication servers, including Mojang's. They're not really interested in Minecraft accounts beyond learning of an email / password pair that might work for other (more important) things like gmail.

It's not unlikely that the previous 'owner' of your VMs IP was engaged in those sort of shenanigans, and that Mojang inserted a firewall rule on their side to stop the abuse.

If that is the case:

  • Contact Mojang. Tell them you just bought a new VPS and it can't connect to their authentication server.
  • Be ready to back up that claim - keep the welcome email the host sent you
  • If all fails, try explaining this to your host, and ask for an IP from a different block

SSH to the VM first and try pinging / traceroute to the auth server, include this information when you contact Mojang.

When you get a shiny new VM, you also (unfortunately) inherit all of the bad behavior that might have been coming from the IP it was assigned - once in a while you have to play the it ain't me game to get stuff working again.

2
  • 1
    Wait, it is an answer, but you could simplify the first paragraph of it. It sounds like you are answering the question of "How do people steal my Minecraft Password?", but the rest answers the question here.
    – ave
    Jan 10, 2016 at 18:55
  • 1
    @ardaozkal I made an edit. I have to explain the phenomenon as context, but I think it reads more clearly now.
    – Tim Post
    Jan 11, 2016 at 6:14
2

I had a similar issues.

The problem with all the fixes i found was that I installed Minecraft via snap. sudo snap install minecraft and because snaps are self contained the java on my machine did not effected it.

What fixed it for me was installing the old launcher instead.

  1. Remove snap version sudo snap remove minecraft
  2. completely remove java 10 ( If Installed )
  3. Install Minecraft Via curl Script
1

I've had this issue before, turned out that whilst I'd created iptables rules to allow incoming connections to ports that the server used for the game, I hadn't allowed established/related connections coming back from the authentication servers.

If you are using iptables, you might want to check you have this rule on your input chain.

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Check if you have any iptables rules using the command iptables -L

If this helps, these are my iptables rules (as seen by the command iptables -L), basically, it firewalls off all incoming connections apart from SSH (used to manage the server), http as I run a web server on the system, then I allow 25565 (Minecraft) and 25575 (rcon), and any other incoming traffic on the local network (192.168.1.0/24). I place no restrictions on traffic being output from the system, and note that I also allow all ICMP traffic through, which isn't essential, but it could cause problems if you block it.

root@mc:~# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere       tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere       tcp dpt:http
ACCEPT     tcp  --  anywhere             anywhere       tcp dpt:25565
ACCEPT     tcp  --  anywhere             anywhere       tcp dpt:25575
ACCEPT     all  --  192.168.1.0/24       anywhere
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere       state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
1

I'm not sure if you are still having this issue, but I finally found a solution that works for me. Along with making sure the iptables rules suggested earlier are in place, I had to add two java command line arguments.

-Djava.net.preferIPv4Stack=true -Djava.net.prferIPv6Addresses=false

After adding those in my java execution line, I was able to connect to my minecraft server running on my debian vps.

1

I had this problem on a new Digital Ocean box running Ubuntu 18.04 and tried a lot of things, but these steps finally fixed it.

  1. Ensure you can access the following URLs from your box using ping, curl, wget etc.

    • minecraft.net
    • account.mojang.com (note, this will give you a 403 by default)
    • authserver.mojang.com
    • skins.minecraft.net
    • textures.minecraft.net
  2. If you cannot, look at Tim Post's answer, if you can connect, continue.

  3. Completely remove the currently installed version of Java from the box. There are complete answers online as to how to do that.

  4. apt-get install openjdk-8-jdk. (I had java 10 installed from apt-get install default-jre and nothing I did would make that work.)

  5. update-ca-certificates -f

  6. Run the commands from this script

    /usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts

    /var/lib/dpkg/info/ca-certificates-java.postinst configure

  7. reboot

  8. Success!

-3

I suggest that you completely re-create the server (using same map, etc.) since you just copied the files from a windows computer.

Server files that come from a windows machine CANNOT be used on Linux unless you create a virtual machine.

You can download Linux server files from here under multiplayer setup: https://minecraft.net/download

I hope this helps :)

3
  • 1
    The server launches and I can connect to it if I set online mode to false, but it just can't connect to the authentication servers Jan 30, 2015 at 23:02
  • 1
    I would still suggest a re-install. Most bugs such as this one are solved this way...
    – Royce
    Jan 30, 2015 at 23:05
  • 3
    The only possible problem with copying server files from Windows to Linux is having the wrong binary and failing to start the server at all, but the Minecraft server package is a .jar file that will run anywhere, not Windows-specific. Besides, the server is obviously running, just not authenticating. Mar 2, 2015 at 19:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .