How to connect to a LAN world in Minecraft 1.21.5
To join a LAN world in Minecraft 1.21.5, you need to be on the same local network as the host, then open the Multiplayer menu and look for the server listed under "Direct Connection". The host must first open their world to LAN by pausing the game, selecting "Open to LAN", choosing a game mode, and setting a port number — the default is 25565, but you can use any port between 1024 and 65535. Once the host has done this, other players on the same Wi-Fi network or wired connection can see and join that world without needing a separate server.
The process works the same whether you're playing on Windows, Mac, or Linux, though the exact menu locations look slightly different. Port forwarding is not required for LAN play — only for connecting over the internet from outside your home network.
Key Takeaways
- The host opens their world to LAN by pausing, selecting "Open to LAN", choosing a game mode, and confirming a port number.
- Other players on the same network see the LAN world appear in their Multiplayer menu without needing to enter an IP address or port manually.
- If a player does not see the LAN world listed, they should check that both computers are connected to the same Wi-Fi network or wired connection.
- LAN worlds work only on local networks — to play with people outside your home, you need a dedicated server or realm instead.
Steps for the host to open a world to LAN
Start Minecraft 1.21.5 and load the world you want to share. Once you are in the world, press Escape to open the pause menu. Look for the button labeled "Open to LAN" — it appears in the main pause menu, not in settings.
When you click "Open to LAN", a small window appears asking you to choose a game mode. You can select Survival, Creative, or Adventure. This setting controls what the joining players can do in the world — if you choose Survival, they play in Survival mode; if you choose Creative, they can build and fly freely. You can also toggle "Allow Cheats" on or off at this step. Once you have made your choices, click "Start LAN World".
Minecraft then assigns a port number and displays it on your screen. The default is usually 25565, but if that port is already in use on your computer, Minecraft picks the next available one. Write down or remember this port number — you may need it if a player has trouble connecting. The host's world stays open to LAN until they close the world, quit Minecraft, or select "Close LAN World" from the pause menu.
Steps for other players to join the LAN world
On any other computer on the same network, open Minecraft 1.21.5 and click "Multiplayer" from the main menu. The game automatically scans your local network for LAN worlds. Within a few seconds, you should see the host's world listed with their username and the world name. Click on it and then click "Join Server".
If you do not see the LAN world listed after waiting 10 seconds, try clicking "Refresh". If it still does not appear, check that your computer is connected to the same Wi-Fi network or wired connection as the host. Both devices must be on the same network for the scan to work. If you are still having trouble, you can join manually by clicking "Direct Connection", entering the host's local IP address followed by a colon and the port number — for example, 192.168.1.100:25565 — and clicking "Join Server".
Finding your local IP address if you need it
If automatic discovery does not work, you need the host's local IP address. On Windows, the host can open Command Prompt, type ipconfig, and look for the line labeled "IPv4 Address" under their active network connection. On Mac or Linux, open Terminal, type ifconfig, and find the address next to "inet" under the active connection. This address usually starts with 192.168 or 10.0.
The joining player then enters this address with the port number in the "Direct Connection" field. For example, if the host's IP is 192.168.1.50 and the port is 25565, the joining player enters 192.168.1.50:25565. This method works even if the LAN world does not show up in the automatic scan.
Troubleshooting when players cannot see or join the world
If a player sees the LAN world listed but cannot join, the most common cause is a firewall blocking the connection. On Windows, open Windows Defender Firewall, click "Allow an app through firewall", find Minecraft in the list, and make sure both "Private" and "Public" are checked. On Mac, go to System Preferences > Security & Privacy > Firewall Options and add Minecraft to the allowed apps list.
If the world is not showing up at all, restart Minecraft on both the host and joining computers. Sometimes the network scan does not detect the world on the first try. You can also try moving both computers closer together to rule out Wi-Fi range issues, or switch to a wired connection if possible — wired connections are more stable for LAN play.
If you are using a guest network or a network that isolates devices from each other, LAN worlds will not work. Ask your network administrator to enable device-to-device communication, or connect both computers to the main network instead.
LAN worlds versus realms and dedicated servers
LAN worlds are free and require no setup beyond opening your world to LAN, but they only work when both players are on the same local network. If you want to play with friends outside your home, you have two other options: Minecraft Realms or a dedicated server.
Minecraft Realms is a subscription service that Mojang runs. You pay a monthly fee, create a realm, and invite players by their username — they can join from anywhere in the world. A dedicated server is a computer or rented hosting service that runs Minecraft continuously. Dedicated servers are free to set up on your own hardware but require more technical knowledge and a computer that stays on. Realms is simpler but costs money; dedicated servers are more flexible but demand more work.
Frequently Asked Questions
Can I use a custom port number instead of the default?
Yes. When you open your world to LAN, Minecraft shows you the port it assigned. If you want to use a different port, you can manually change it before clicking "Start LAN World" — any number between 1024 and 65535 works. Just make sure the joining player knows the correct port number.
Do I need to port forward to play on a LAN world?
No. Port forwarding is only needed if you want to play with people outside your home network. LAN worlds work only on your local network and do not require any router changes.
What happens if two people try to open LAN worlds at the same time?
Both worlds can run at the same time as long as they use different port numbers. Minecraft automatically assigns different ports to avoid conflicts. Players can join either world by selecting it from the Multiplayer menu or by using Direct Connection with the correct port.
Can I play a LAN world on a phone or tablet?
Minecraft Java Edition, which supports LAN worlds, runs only on Windows, Mac, and Linux. Minecraft Bedrock Edition runs on phones and tablets but does not support traditional LAN worlds — instead, it uses "Worlds on a Realm" or split-screen multiplayer depending on the device.
Why does my LAN world keep disconnecting?
LAN worlds disconnect if the host closes the world, quits Minecraft, or loses network connection. If disconnects happen frequently, check that your Wi-Fi signal is strong or switch to a wired connection. Firewall or antivirus software can also interrupt connections — temporarily disable them to test.