Assist With Minecraft LAN Server On Mac

From Open Source Bridge
Jump to: navigation, search

This is not trivial as it requires forcing a _JAVA_Option override at launch (or system large).



Diagnose



To diagnose this as the trigger, first launch Minecraft from terminal with the _JAVA_Options overridden.



1. Close Minecraft2. Open 🔎 Spotlight (🔎 in upper right of Desktop)3. Seek for "Terminal", open the appPaste the following command in:



_JAVA_Choices=-Djava.internet.preferIPv4Stack=true /Functions/Minecraft.app/Contents/MacOS/launcher



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



Permanently Fix



Using Minecraft Launch Choices: @TheOnlyMrCat supplies a method here that does not involve modifying any recordsdata by hand. Please strive that before making modifications to the Minecraft launcher.



Patching the launcher manually:



Use this method only you probably have problems using @TheOnlyMrCat's answer.



This _JAVA_Choices override can be provided in many areas however since launching from Terminal shouldn't be ideal, we need to make use of a method that fixes when clicking on the icon. At time of posting, the Apple advisable methodology for offering overrides is contained in the App bundle itself utilizing one thing referred to as LSEnvironment



1. Optionally set up a Textual content Editor comparable to Atom to edit XML files.2. Utilizing Finder, go to Purposes3. Find (do not open) the Minecraft App4. Minecraft servers Right click on Minecraft, Present Bundle Contents5. Minecraft servers Go into the Contents folder and find Data.plist6. Proper click on Information.plist, Open With, Atom (or TextEditor)Close to the bottom of the file, add the next in between the LSEnvironment _JAVA_Choices -Djava.internet.preferIPv4Stack=true



Unfortunately this does not take effect immediately. This is because of the way Mac caches it's launch companies.