Help With Minecraft LAN Server On Mac?

· 1 min read
Help With Minecraft LAN Server On Mac?

This is not trivial because it requires forcing a _JAVA_Choice override at launch (or system huge).


Diagnose


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


1. Shut Minecraft
2. Open 🔎 Spotlight (🔎 in upper right of Desktop)
3. Search for "Terminal", open the app
Paste the following command in:


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


Try to hook up with LAN server and see if it fixes the problem


Completely Fix


Using Minecraft Launch Options: @TheOnlyMrCat provides a technique right here that doesn't contain modifying any recordsdata by hand. Please try that before making changes to the Minecraft launcher.


Patching the launcher manually:


Use this method solely if you have problems utilizing @TheOnlyMrCat's resolution.


This _JAVA_Options override will be offered in many locations but since launching from Terminal shouldn't be superb, we want to use a method that fixes when clicking on the icon. At time of posting, the Apple really helpful methodology for offering overrides is contained in the App bundle itself using one thing known as LSEnvironment


1. Optionally install a Text Editor resembling Atom to edit XML files.
2. Using Finder, go to Functions
3. Locate (don't open) the Minecraft App
4.  All About Minecraft Servers And Minecraft In General  on Minecraft, Show Package deal Contents
5. Go into the Contents folder and find Information.plist
6. Right click Data.plist, Open With, Atom (or TextEditor)
Close to the bottom of the file, add the following in between the LSEnvironment _JAVA_Choices -Djava.net.preferIPv4Stack=true


Unfortunately this does not take impact straight away. This is because of the way in which Mac caches it is launch companies.