Assist With Minecraft LAN Server On Mac

From Wifi Adapters DB
Jump to: navigation, search

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



Diagnose



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



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



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



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



Completely Fix



Using Minecraft Launch Choices: @TheOnlyMrCat provides a way right here that doesn't involve modifying any recordsdata by hand. Please try that earlier than making modifications to the Minecraft launcher.



Patching the launcher manually:



Use this methodology solely in case you have issues using @TheOnlyMrCat's answer.



This _JAVA_Options override could be offered in many areas however since launching from Terminal will not be perfect, we'd like to use a way that fixes when clicking on the icon. At time of posting, the Apple advisable methodology for providing overrides is inside the App bundle itself using something referred to as LSEnvironment



1. Optionally set up a Text Editor similar to Atom to edit XML information.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 Information.plist6. Right click on Info.plist, Open With, Atom (or TextEditor)Close to the underside of the file, add the following in between the LSEnvironment _JAVA_Choices -Djava.web.preferIPv4Stack=true



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

Minecraft Towny Servers