Help With Minecraft LAN Server On Mac

From Champion's League Wiki
Jump to: navigation, search

This isn't trivial as it requires forcing a _JAVA_Choice override at launch (or system extensive).



Diagnose



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



1. Shut Minecraft2. Wnat spout 🔎 Highlight (🔎 in higher proper of Desktop)3. Search for "Terminal", open the appPaste the following command in:



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



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



Permanently Fix



Using Minecraft Launch Options: @TheOnlyMrCat provides a method right here that doesn't contain editing any information by hand. Please try that earlier than making changes to the Minecraft launcher.



Patching the launcher manually:



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



This _JAVA_Options override can be offered in lots of areas but since launching from Terminal is just not excellent, we'd like to make use of a technique that fixes when clicking on the icon. At time of posting, the Apple recommended method for providing overrides is contained in the App bundle itself utilizing one thing known as LSEnvironment



1. Optionally set up a Text Editor similar to Atom to edit XML information.2. Using Finder, go to Functions3. Find (do not open) the Minecraft App4. GETSPOUT , Show Bundle Contents5. Go into the Contents folder and locate Info.plist6. Proper click on Info.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



Sadly this doesn't take effect instantly. This is because of the way in which Mac caches it's launch providers.