Assist With Minecraft LAN Server On Mac

From Hikvision Guides
Jump to: navigation, search

This isn't trivial because it requires forcing a _JAVA_Option override at launch (or system wide).



Diagnose



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



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



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



Try and connect with LAN server and see if it fixes the issue



Permanently Repair



Using Minecraft Launch Choices: @TheOnlyMrCat offers a method right here that does not contain modifying any information by hand. Please try that earlier than making modifications to the Minecraft launcher.



Patching the launcher manually:



Use this method solely if you have issues using @TheOnlyMrCat's solution.



This _JAVA_Choices override will be offered in many locations but since launching from Terminal is not superb, we'd like to make use of a technique that fixes when clicking on the icon. At time of posting, the Apple recommended technique for offering overrides is inside the App bundle itself utilizing something known as LSEnvironment



1. Optionally set up a Text Editor resembling Atom to edit XML recordsdata.2. Using Finder, go to Purposes3. Find (don't open) the Minecraft App4. Proper click Minecraft, Present Bundle Contents5. Go into the Contents folder and find Info.plist6. Proper click Info.plist, Open With, Atom (or TextEditor)Near the bottom of the file, add the following in between the LSEnvironment _JAVA_Options -Djava.net.preferIPv4Stack=true



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