If you're on a Mac and you've noticed you're having problems with Minecraft's "OPEN TO LAN" not being detected by the other player or showing as they try joining your game, try this simple solution out! Confirmed working as of February 19, 2021

COMMAND TO COPY AND PASTE:

-Djava.net.preferIPv4Stack=true

source
ipv4