Me and my friends were trying to play some Minecraft on our free time, but the problem is that we all didn’t had Minecraft bought. Two of us had it bought but other four still wanted to play. So, I have to look for some sort of solution so everyone can enjoy the game. We mostly work on Ubuntu so all had same platform. This version of solution shall work on Windows and MacOS. Windows version of Minecraft were easily available to download but hard to find on other platforms.
At first, I tried to copy the working version from my PC to friend’s. On Ubuntu the folder of working copy is available on ~/.minecraft i.e. Home > .minecraft folder that is hidden. After that I checked the content inside the folder. The content that looks valid and need a change was only launcher_profiles.json. I checked through my profile and found in a pattern that might help opening the Minecraft on friend’s PC. The profile looked something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
{ "profiles": { "userName": { "name": "userName" } }, "selectedProfile": "userName", "clientToken": "<some-random-guid>", "authenticationDatabase": { "<SELECTED_USER-md5-32-character>": { "displayName": "userName", "accessToken": "<some-random-md5>", "userid": "<some-random-md5>", "uuid": "<some-random-guid>", "username": "some@email.com" } }, "selectedUser": "<SELECTED_USER-md5-32-character>", "launcherVersion": { "name": "1.6.73-j", "format": 18, "profilesFormat": 1 } } |
Now I generated a launcher_profiles.json from the above syntax, and started running the program. But still the authentication failed and I have to wonder more. I checked that the request are sent to authserver.mojang.com and I tried blocking the server. I opened up my /etc/hosts file with root permission.
1 |
sudo nano /etc/hosts |
And then added following line.
1 |
10.1.2.3 authserver.mojang.com |
I assume 10.1.2.3 is not inside your network and will never call. You can use any IP you want. I checked the launcher_profiles.json and it was all messed up with authentication failure, so I copied the content of generated profile in it again. Now since it will stuck in resolving the auth server, it will just prompt you with Play Offline button and now you can enjoy the game with your friends.
Here is a sample of launcher_profile.json you may want to use. Make sure you change to something else so same UUID and Username doesn’t conflict during the play. Also, change the version name to the version you have.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
{ "profiles": { "friend1": { "name": "friend1" } }, "selectedProfile": "friend1", "clientToken": "3f6d8f97-40c7-4523-ac7f-12c91bca25b8", "authenticationDatabase": { "f92a1b6a16d64f0a9d6205f4a7daaf2d": { "displayName": "friend1", "accessToken": "d249f5e376ab486081836faa96176e66", "userid": "1ab39d313a25a42e597163fbf387fa13", "uuid": "104d2c9b-25e7-4e1f-8e61-05a4d2a3bd2f", "username": "some@email.com" } }, "selectedUser": "f92a1b6a16d64f0a9d6205f4a7daaf2d", "launcherVersion": { "name": "1.6.73-j", "format": 18, "profilesFormat": 1 } } |
Happy Mining.
PS: Please do not ask for Minecraft here, I am just sharing it because it may be helpful for some people just to try things out.