6

I've been playing Minecraft with my son for a couple of years now, while using the same account on a LAN without any problem, until the past couple of weeks. I have a Mac and a Windows 10 machine, both running the latest stable releases. I used a common 'hack' to allow the same account to connect to each other by editing the launcher_profile.json file on the Mac, and changing the username and DisplayName variables to something else (in this case, 'Dad').

This hack is no longer working, and I can't find anything recent that confirms any changes to hack.

How can I get LAN gaming working again without purchasing another Minecraft account?
(I'm not interested in using it for online multiplayer).

  • 2
    I'm not sure if this would run afoul of our rule about piracy. I recall there being something about LAN that didn't need two accounts, but I'm not 100% sure on that. – Frank Jun 30 '18 at 12:24
  • I wouldn't personally consider this use case to be piracy, by the legal definition (I think it falls under "fair use" though IANAL) However, both piracy AND "mod development" are off-topic, and it seems to me that this use case falls somewhere between those two things. – Steve-O Jun 30 '18 at 16:21
  • You're playing Java Edition, not Bedrock/Pocket/Windows 10/"Better together"/whateverIt'sCalled Edition, right? – Fabian Röling Jul 2 '18 at 8:29
4

The issue is that Minecraft contacts their servers when you start up, and overwrites the displayName with whatever is linked to the actual account on their servers. Then, when you connect to the LAN game, it complains that a user with that name already exists.

I found that the solution is to somehow stop Minecraft from accessing the internet. Do the displayName trick, game on.

The crude version of this is to just disconnect your house's internet cable from the modem/router. Keep the wifi/lan router on, just don't connect it to the internet.

A less crude version is to just block access to the Minecraft servers. For me (Windows 10), these were the steps:

  1. The "original" displayName trick: open C:\Users\<username>\AppData\Roaming\.minecraft\launcher_profiles.json in a text editor, search for "displayName" and replace the value next to it by someting else (eg "Dad").
  2. Open Notepad with administrator rights
  3. From within Notepad, browse to C:\Windows\System32\drivers\etc\, set the file filter to "All files", and open the file called hosts (it has no file extension)
  4. Add a line with the following text:

    0.0.0.0 minecraft.net
    
  5. Launch Minecraft, connect to your son's LAN game as usual

The steps are very similar on Mac and Linux.

Step 1 is described in more detail here: Is it still possible to set your username in offline mode in Minecraft 1.6 and later?

Steps 2-4 are described in more detail here: https://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/

This way, you don't need to kick the rest of the family off Netflix :-)

There's still a downside: minecraft.net will be blocked for all your applications. You won't be able to download minecraft updates or even visit the site. Acceptable to me, although I still think Minecraft should have some sort of "father and son" mode - IMO it's ridiculous that I need to pay for two licenses just to be able to help a six year old build a roof every two months. That can't have been the idea behind Minecraft's licensing setup.

  • Seems they have blocked this little "exploit". Now when I login it just tells me "Failed to verify username!" :( – slott Feb 9 '19 at 19:09
  • While skrebbel has an excellent answer, I believe Minecraft has blocked this on Windows Java edition by authenticating your account each time you run the launcher...no more offline mode :( – kibitzforu Jul 14 '19 at 12:36
4

Open the following file with notepad:

C:\Users\<username>\AppData\Roaming\.minecraft\launcher_profiles.json

change the line with the display name so that all clients on LAN have different display names.

finally, save the file, right click, select properties, enable Read only, click ok.

Start game as normal.

2

Try to change online-mode=true - replace true with false in the server startup config. You also need to change DisplayName on one of the client instance. This helps me with the same issues.

  • This seems like the better answer. Tried the accepted and it didn't work. What are the downsides of online-mode=false? – slm Jun 24 '19 at 23:40
  • This and the previous answer are correct in combination. I just did both for my java version before seeing this page while looking if the same is possible on Bedrock LAN servers. – Dan V Oct 14 '19 at 3:44
  • Note that online-mode is specified in server.properties file in your server folder. It seems you need this as well as displayName change in %USERPROFILE%\AppData\Roaming\.minecraft\launcher_profiles.json. – Shital Shah Nov 24 '19 at 11:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.