Assist With Minecraft LAN Server On Mac

From Valentino Fans
Jump to: navigation, search

This isn't trivial as it requires forcing a _JAVA_Choice override at launch (or system broad). PAXTON'S BLOG



Diagnose



To diagnose this as the cause, first launch Minecraft from terminal with the _JAVA_Choices overridden.



1. Close Minecraft2. Open 🔎 Highlight (🔎 in higher proper of Desktop)3. Search for "Terminal", open the appPaste the next command in:



_JAVA_Options=-Djava.net.preferIPv4Stack=true /Purposes/Minecraft.app/Contents/MacOS/launcher



Attempt to connect to LAN server and see if it fixes the problem



Completely Repair



Using Minecraft Launch Options: @TheOnlyMrCat offers a method here that does not involve modifying any files by hand. Please try that before making modifications to the Minecraft launcher.



Patching the launcher manually:



Use this technique only if you have issues using @TheOnlyMrCat's answer.



This _JAVA_Choices override will be provided in many areas however since launching from Terminal is not preferrred, we'd like to make use of a way that fixes when clicking on the icon. At time of posting, the Apple beneficial technique for offering overrides is contained in the App bundle itself using one thing known as LSEnvironment



1. Optionally set up a Textual content Editor such as Atom to edit XML recordsdata.2. Utilizing Finder, go to Purposes3. Locate (don't open) the Minecraft App4. Right click Minecraft, Show Package Contents5. Go into the Contents folder and find Info.plist6. Right click Information.plist, Open With, Atom (or TextEditor)Close to the underside of the file, add the next in between the LSEnvironment _JAVA_Options -Djava.web.preferIPv4Stack=true



Unfortunately this does not take effect straight away. This is because of the best way Mac caches it's launch providers.