Direct LAN connection means playing Minecraft on the same local network without going through a server

A direct LAN connection in Minecraft lets you and other players on your home network play together in the same world without renting a server or using Minecraft Realms. One player hosts the world on their computer, and other players on the same WiFi or ethernet network join directly. The host's computer must stay running and connected for others to play, and only people physically near you (or on your home network) can join.

This works on Windows, Mac, and Linux, though the steps differ slightly. Console versions of Minecraft (PlayStation, Xbox, Nintendo Switch) use different networking and cannot join PC LAN worlds directly.

Key Takeaways

  • The host player opens their world to LAN through the pause menu, which generates a port number that other players use to join.
  • All players must be on the same WiFi network or connected to the same router via ethernet for a direct connection to work.
  • The host's computer must remain powered on and running Minecraft the entire time others are playing.
  • You can find the host's IP address through Windows Settings, Mac System Preferences, or the Linux terminal, depending on your operating system.

How to host a LAN world in Minecraft Java Edition

Open Minecraft Java Edition and load the world you want to share. Pause the game by pressing Escape, then look for the button labeled "Open to LAN" — it appears in the pause menu on the left side. Click it.

A window will pop up with options. You can leave the default settings or change the game mode (Survival, Creative, Adventure) and whether cheats are allowed. Once you are ready, click "Start LAN World." Minecraft will display a port number on screen — this is the number other players need to join. Write it down or take a screenshot.

The world stays open to LAN as long as you remain in the game. If you pause and exit to the main menu, the LAN connection closes and other players are kicked out. You must stay in the world for others to play.

How to join a LAN world as another player

On your computer, open Minecraft Java Edition and go to the main menu. Click "Multiplayer," then click "Direct Connection." A text box will appear asking for the server address.

You need the host's computer IP address and the port number they gave you. The format is IP.address:portnumber — for example, 192.168.1.5:25565. Ask the host for both pieces of information. Type this into the box and click "Join Server." If the connection works, you will load into the host's world.

If you see an error message, the most common causes are a typo in the IP address or port number, the host's computer being offline, or the two computers not being on the same network. Double-check the address and ask the host to verify their computer is still running Minecraft.

Finding your computer's IP address on Windows

If you are the host and need to give other players your IP address, open the Start menu and type "Settings." Click Settings, then go to Network & Internet. On the left side, click "WiFi" or "Ethernet" depending on how you are connected. Scroll down and look for "IPv4 address" — this is the number you give to other players.

Write down the full number, including all the dots and digits. This address only works while you are on this network. If you move to a different WiFi network or restart your router, the address may change.

Finding your computer's IP address on Mac

Click the Apple menu in the top left corner and select "System Preferences" (or "System Settings" on newer macOS versions). Click "Network." On the left side, select the network you are connected to — either WiFi or Ethernet. The IP address appears on the right side of the window, labeled "IPv4 Address."

Copy this address and share it with other players along with the port number from the "Open to LAN" window. Like Windows, this address is temporary and may change if you disconnect from the network.

Finding your computer's IP address on Linux

Open a terminal window. Type the command hostname -I and press Enter. Your IP address will appear on the screen. This is the address to give to other players.

Alternatively, you can type ifconfig and press Enter to see more detailed network information. Look for the line labeled "inet" under your active network connection — the number next to it is your IP address.

Troubleshooting common LAN connection problems

If other players cannot join your world, first check that everyone is on the same WiFi network. Some home networks have a guest network separate from the main one — make sure all players are on the main network. If you are using ethernet cables, all computers must be plugged into the same router.

Second, verify the host's computer is still running Minecraft and in the world, not paused at the main menu. The LAN connection closes automatically if the host exits to the menu. Third, confirm the IP address and port number are typed correctly — even one wrong digit will prevent a connection.

If a player was previously connected and suddenly cannot rejoin, restart Minecraft on both the host and joining computers. Sometimes the connection drops if the host's computer goes to sleep or loses network connection briefly. Restarting the game usually fixes this.

If you are still unable to connect after checking these things, your router may have a firewall blocking Minecraft. Check your router settings or contact your internet provider for help opening the port Minecraft is using.

Frequently Asked Questions

Can I play Minecraft LAN with console players?

No. PlayStation, Xbox, and Nintendo Switch versions of Minecraft cannot join PC LAN worlds directly. Console players can only play together on the same console or through Minecraft Realms, which is a paid subscription service. PC Java Edition and Bedrock Edition can connect to each other through LAN on some setups, but console versions are separate.

What happens if the host's computer crashes or loses power?

All other players are immediately kicked from the world and returned to the main menu. Any progress they made since the last save is lost. The host's computer must stay powered on and connected to the network for the entire play session. If you need to leave, tell other players first so they can save their progress.

Can I play LAN Minecraft over the internet instead of just my home network?

Not through direct LAN connection. LAN only works on local networks. To play with people outside your home network, you need a server or Minecraft Realms. Some players use port forwarding or VPN software to simulate a LAN connection over the internet, but this requires technical setup and is not officially supported by Minecraft.

Does the host need a better computer than other players?

The host's computer runs the world and manages the game for everyone, so it does need to handle more work than joining computers. A very old or slow computer may struggle if many players are connected. Other players' computers only need to run the game normally, so they can be less powerful than the host's machine.

Can I change the world settings after opening it to LAN?

No. Once you open a world to LAN, the game mode and cheats setting are locked. If you need to change these, close the LAN world, exit to the main menu, edit the world settings in the world options, and then open to LAN again. Other players will be kicked when you close the world.