Software⏱️ 3 min read📅 2026-05-30

How to Fix: Minecraft Lan connection connection error: io.netty.channel.connecttimeoutexception connection timed out on Mac

Minecraft LAN connection error on Mac resolved by disabling firewall and using IPv4.

Quick Answer: Try disabling your firewall and ensure both devices are connected to the same WiFi network.

Minecraft LAN connection issues can be frustrating, especially when trying to play with friends on the same network. In this guide, we'll explore the root causes of the error and provide proven troubleshooting steps to help you resolve the issue.

🛑 Root Causes of the Error

  • The error 'io.netty.channel.connecttimeoutexception connection timed out on Mac' is often caused by a misconfigured network settings or an issue with the Java runtime environment.

🔧 Proven Troubleshooting Steps

Method 1: Configure Java Network Settings

  1. Step 1: Open the Terminal app on your Mac and run the following command to set the preferred IPv4 stack for Java:
-Djava.net.preferIPv4Stack=true
This will ensure that Minecraft uses IPv4 for network communication.

Method 2: Disable Firewall and Port Forwarding

  1. Step 1: Disable the firewall on your Mac by running the following command in Terminal:
sudo sysctl -w net.inet.ip.fw.enable=0
This will temporarily disable the firewall to prevent any port conflicts.

Method 3: Port Forwarding on Router

  1. Step 1: Check your router's configuration to ensure that port forwarding is enabled for the Minecraft server.
This may require logging in to your router's web interface and setting up a port forward rule for the Minecraft server.

💡 Conclusion

By following these steps, you should be able to resolve the 'io.netty.channel.connecttimeoutexception connection timed out on Mac' error and enjoy seamless Minecraft LAN gaming with your friend.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions