What a Minecraft LAN connection is and how to set one up
A LAN (Local Area Network) connection in Minecraft lets you play with other people on the same Wi-Fi network without needing to rent a server or go online through Minecraft Realms. One person hosts the world on their computer, and others on that same network can join directly. It works on Windows, Mac, and Linux, and it is the fastest way to play together if everyone is in the same house or office.
The host computer stays running the whole time others are playing. If the host closes Minecraft or shuts down their computer, everyone gets kicked out. This is different from a permanent server, but it costs nothing and takes just a few clicks to start.
Key Takeaways
- The host opens their world to LAN from the pause menu, and Minecraft shows a port number that other players need to join.
- Other players use the Multiplayer menu, select Direct Connection, and enter the host's computer name or IP address plus the port number.
- Everyone must be on the same Wi-Fi network for LAN to work — it does not work across the internet.
- If you cannot see the host's computer, check that Windows Firewall or your Mac firewall is not blocking Minecraft.
- The host can set the world to Creative, Survival, or any difficulty before opening it to LAN.
How the host opens their world to LAN
Start Minecraft and load the world you want to share. Once you are inside the world, press Escape to open the pause menu. Look for the button that says "Open to LAN" — it is usually near the top of the menu.
Click "Open to LAN". A window appears with options. You can choose the game mode (Survival, Creative, or Adventure) and whether to allow cheats. These settings only affect new players joining — they do not change your own game. Once you have set what you want, click "Start LAN World".
Minecraft shows a message with a port number, usually something like "Local game hosted on port 25565". Write down that number or leave this screen open. Other players will need both your computer name (or IP address) and this port number to join.
How other players join the LAN world
On each computer that wants to join, open Minecraft and click "Multiplayer" from the main menu. Click "Add Server" or "Direct Connection" depending on your Minecraft version.
If you see a "Direct Connection" option, click it. You will see a field asking for "Server Address". Type the host's computer name followed by a colon and the port number. For example: MARCUS-COMPUTER:25565. If you do not know the host's computer name, you can use their IP address instead — ask the host to open Command Prompt (Windows) or Terminal (Mac) and type ipconfig (Windows) or ifconfig (Mac) to find it. Look for the address that starts with 192.168 or 10.0.
Click "Join Server" or "Connect". If everything is set up correctly, you will load into the host's world in a few seconds.
Troubleshooting when players cannot see or join the host
The most common reason players cannot join is that everyone is not on the same network. Make sure all computers are connected to the same Wi-Fi network — not a guest network, not a phone hotspot, and not a different router. If someone is on a different network entirely, LAN will not work. They would need to use a server or Minecraft Realms instead.
If everyone is on the same network but the join still fails, check your firewall. On Windows, open Windows Defender Firewall and click "Allow an app through firewall". Look for "Java" or "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 host typed the port number wrong, the connection will fail silently. Double-check the exact number from the "Open to LAN" message. If you are still stuck, have the host close the world and open it to LAN again — sometimes the port changes.
Setting up LAN on different Minecraft versions
Java Edition (the version most people play on Windows, Mac, and Linux) uses the steps above. Bedrock Edition (the version on Windows 10/11, Xbox, and mobile) works differently — it uses Realms or split-screen, not LAN in the same way.
If you are playing Bedrock Edition and want to play together locally, the easiest option is to use the same Xbox account on multiple devices, or to use Minecraft Realms for a small monthly cost. LAN in Bedrock is limited and not recommended for most players.
What to do if the host's computer goes to sleep or shuts down
If the host computer enters sleep mode, all connected players will be kicked out immediately. Before hosting, go to your power settings and turn off sleep mode, or set it to never sleep while plugged in. On Windows, search for "Power settings" and click "Change when the computer sleeps". Set both plugged in and on battery to "Never". On Mac, go to System Preferences > Energy Saver and uncheck "Put hard disks to sleep when possible".
If the host closes Minecraft or restarts their computer, everyone loses connection and cannot rejoin that world until the host opens it to LAN again. Let players know before you stop hosting so they can save their progress.
Playing LAN with mods or resource packs
If the host has mods installed, all joining players must have the exact same mods and versions. If someone joins without matching mods, they will either see errors or get kicked. The safest way is to have everyone install mods from the same launcher (like CurseForge or MultiMC) so versions stay in sync.
Resource packs are optional — the host can use one and other players do not have to. Mods are required to match. If you are new to modding, stick with vanilla (unmodded) LAN until you are comfortable managing mod versions across multiple computers.
Frequently Asked Questions
Can I play LAN across the internet if my friend is not home?
No. LAN only works on the same local network. If your friend is in a different house or city, you need to use a server, Minecraft Realms, or a tunneling service like Hamachi. Those options cost money or require extra setup, but they let you play together over the internet.
Why does my friend's computer not show up in the server list?
LAN does not show a list of available computers — you have to type the host's address manually. Make sure you are using "Direct Connection" or "Add Server", not browsing a server list. Enter the host's computer name and port number exactly as shown in the "Open to LAN" message.
Can I play LAN on a phone or tablet?
Minecraft Bedrock Edition on phones and tablets does not support LAN the same way Java Edition does. Your best option is Minecraft Realms, which costs a small monthly fee but works on any device. Some phones can join a Java LAN world if you use a third-party app, but it is not officially supported.
What if I want to keep the world running after I close Minecraft?
LAN worlds only exist while the host is playing. If you want a world that stays online all the time, you need to rent a server or use Minecraft Realms. Both cost money but let other players join whenever they want, even if you are not playing.
Does LAN work on a school or office network?
It depends on the network rules. Some schools and offices block LAN connections or Minecraft entirely. If you cannot connect, ask your network administrator. Many workplaces allow it on personal devices connected to a guest network, but not on company computers.