LAN is the test before the internet.
Two machines, one switch.
A local world removes the router from the equation. If two machines on the same network cannot connect, forwarding a port will not fix it, and the LAN test tells you that in five minutes.
The setup
One player opens a world and enables LAN play. The others join on the same network. Discovery uses broadcast, which some firewalls block by default, so a direct address is the fallback when the world does not appear in the list.
Both machines need the same build. A version mismatch is the most common reason a LAN world is visible and unjoinable.
Same network
Both machines on the same switch or access point, not across a VPN.
Same build
Compare the game version before you open the world.
Allow the port
Open the LAN port in the host firewall for the local subnet only.
Join by address
If discovery fails, use the host's LAN IP directly.
Firewall rules
Linux firewalls block incoming connections by default. The host has to allow the game's port on the local subnet. Test with the firewall temporarily permissive, then add a narrow rule rather than leaving it open.
Guest Wi-Fi and client isolation break LAN play even when both machines have addresses. If the router isolates clients, no firewall change on the host will help.
- Allow the port on the host, local subnet only.
- Check for client isolation on guest networks.
- Discovery needs broadcast; a direct IP does not.
- Keep the firewall change narrow.
When LAN works
If LAN is stable, the remaining work for an internet session is forwarding one port and testing from outside. That is a separate problem, and the server page covers it.
Fragen zu dieser Seite
Why can't my friend see my LAN world?
Broadcast discovery is blocked or the networks differ. Try joining by the host's LAN IP instead.
Does LAN need a Microsoft account?
The host and guests still run the game, which has its own session rules. LAN does not remove the account requirement from the game.
Which port should I open?
The one the game uses for LAN play in your build. Open it for the local subnet only.
Prove it on the switch first.
A LAN test isolates the router, the ISP and the internet from the game.