Minecraft invalid server key fix


Update 11-24-2011: Minecraft server 1.0.1 has been released which fixes this bug.  You can get the latest Minecraft server here: http://www.minecraft.net/download.  You don’t have to update your clients.

I’ve been sucked into Minecraft.  It’s a game with a very simple concept but is incredibly enjoyable to play.  Recently the game moved out of testing/beta and was released as 1.0.0.

To my disappointment, one of the biggest bugs I’ve ran into is a head bashing “The server responded with an invalid server key” error on nearly every connection to a multiplayer server.  Very annoying issue to have go out in your 1.0 release.

A Minecraft mod developer has put out a client side fix for this issue here: http://www.minecraftforum.net/topic/801030-100-invalid-server-key-fix/

I thought I’d post the Mac instructions on how to apply this fix:

Load up Terminal.app and type the following commands:

cd Library/Application\ Support/minecraft/bin/
mkdir tmp
cd tmp
cp ../minecraft.jar .
unzip minecraft.jar
rm minecraft.jar
rm META-INF/MOJANG_C.*
wget -O abp.class http://www.sk89q.com/content/2011/11/abp.class
zip -r minecraft.jar *
mv minecraft.jar ..
cd ..
rm -rf tmp

What you do is goto the binary folder for your Minecraft install, make a temporary folder and copy the current minecraft.jar there.
Next you unzip the file, download the fix, delete some meta data, and pack up a new minecraft.jar. From there you just copy it back to the minecraft bin folder.

This should hold you over from going insane trying to connect to any server 10 times with errors until you finally get in.

You can download the patched minecraft.jar file here: minecraft.jar

If you run Windows or Linux, check the thread I linked above for instructions on how to apply the fix.

Thanks a bunch to sk89q for this fix.

Be Sociable, Share!
  1. #1 by jimm on November 24, 2011 - 1:10 am

    ummm for us mac noobs with no wget, what’s the curl command to do what you’re doing there?

  2. #2 by steve on November 24, 2011 - 9:58 pm

    Ah sorry – forgot wget isn’t standard.

    You will go to that URL in your web browser, download the file to Desktop for example, and then instead of the wget command do:

    mv ~/Desktop/abp.class .

    What we’re doing is moving the abp.class file into the tmp folder with the extracted minecraft files.

  3. #3 by oliver on November 29, 2011 - 1:55 pm

    how do you then run the server

Comments are closed.