Playing together Minecraft Transforms single-player world building into an exciting social adventure. When renting a dedicated server isn't an option or your internet connection is unstable, a local network set up via a home Wi-Fi router becomes a lifesaver. This allows friends in the same apartment or house to join forces in a single gaming space without incurring additional costs.
However, despite its apparent simplicity, the setup process often faces technical barriers. Windows firewalls, different Java versions, incorrect router settings, or simply mismatched game versions can render computers invisible to each other. In this article, we'll walk you through a step-by-step process to help you get started. LAN server and enjoy the game without delays.
The main advantage of this method is minimal delay (ping), as data is transferred directly between devices within your network, bypassing Mojang's external servers. For this to work, you need to ensure that all devices are on the same network segment and have the correct sharing settings.
Hardware and game version requirements
Before proceeding with the settings, you need to make sure that your hardware and software are ready to organize network interaction. Local area network Requires all computers or laptops to be connected to the same router. This can be either a wired connection or a wireless Wi-Fi connection.
It is crucial that the game versions are identical. If a different version is installed on the same computer 1.20.1, and on the other 1.19.4, connection is impossible. It's also advisable to have the same mods or plugins installed on all devices if you plan to use a modified client.
- 🖥️ Host computer: The device on which the world will be created must have sufficient RAM and processor performance, since it will act as the server.
- 📶 Router: must support Wi-Fi standards 802.11n or higher to ensure stable, smooth data transfer.
- 💻 Client PCs: any computers on the network that will connect to the created world.
⚠️ Note: When playing over Wi-Fi, connection speeds may be lower than when using an Ethernet cable. If you notice severe lag or block "teleportation," try moving closer to the router or using a cable.
It's also worth considering that antivirus software may block the connection. In some cases, you may need to temporarily disable protection or add an exception for javaw.exe and the Minecraft launcher itself.
Setting up sharing in Windows
By default, the Windows operating system can block discovery of other computers on the network for security reasons. For devices to "see" each other, network discovery must be enabled. Without this step, even with the game settings set correctly, computers will remain isolated.
To get started, open the Network Control Panel. Right-click the network icon in the system tray or go to Settings → Network & Internet → Advanced network settingsHere we are interested in the "Sharing" section.
In the window that opens, find your current network profile and ensure the switch is set to "Private." Then, expand the "Network discovery" list and enable the "Turn on network discovery" and "Turn on automatic configuration of connecting network devices" options.
Next, go to the "File and Printer Sharing" section. Select "Turn on file and printer sharing." This will allow computers to exchange data needed to run the game server.
- 🔍 Activate network discovery for visibility of devices.
- 📂 Turn on file sharing to transfer game data.
- 🔒 Disable if necessary password protection at the bottom of the window if you have problems with authorization within the local network.
After making changes, be sure to click the "Save Changes" button. Without this step, all settings will remain inactive, and the visibility issue will persist.
Launching the world and opening access for LAN
Once the Windows network settings have been verified, you can proceed to launching the game. The player who will be creating the world (the host) should launch Minecraft and log in to their account. The other participants can remain in the main menu for now.
Create a new world or load an existing one. Once you're inside the game space, press the Esc to open the pause menu. In the list of available options, find the "Open to LAN" button.
In the window that opens, you can configure access parameters:
- 🎮 Game mode: Select the mode your guests will play in (Survival, Creative, etc.).
- 🚫 Cheats: Allow or disallow the use of cheat commands for other players.
- 👥 Friends access: Leave this turned off unless you are using Xbox Live services for local networking.
Click "Open World to Network." A system message will appear in the chat indicating that the server is running on a specific port, for example: Local game hosted on port 54321Write down this port number; you will need it if automatic connection does not work.
☑️ Pre-launch check
Now other players can go to the "Multiplayer" menu. If everything is configured correctly, the created world will appear in the list of available servers within a few seconds. If it doesn't, you'll have to connect manually using your IP address.
Finding the IP address and connecting manually
Automatic server discovery in Minecraft sometimes fails due to the way the UDP protocol operates on local networks. In such cases, the most reliable method is to connect directly using the host's IP address.
The player who created the world must find out their local IP address. To do this, press the following key combination: Win + R, enter cmd and press Enter. In the black command prompt window, type the command ipconfig and find the line "IPv4 address". It usually looks like this 192.168.1.X or 192.168.0.X.
C:\Users\User> ipconfigWireless LAN Adapter Wireless Network:
IPv4 address. . . . . . . . . . . : 192.168.1.45
Subnet mask. . . . . . . . . : 255.255.255.0
Default gateway . . . . . . . . : 192.168.1.1
Other players should click the "Direct Connect" button in the "Network Play" menu. In the field that appears, enter the host's IP address, followed by a colon and the port number displayed in the chat when the world was opened. The format is as follows: 192.168.1.45:54321.
⚠️ Note: Your local IP address may change each time you reconnect to Wi-Fi unless your router has a static address reserved. If your connection stops working, check your IP address again.
If you're using the Microsoft Store version of Minecraft (Bedrock Edition on PC), the process is slightly different. It uses the "Friends" feature and requires signing in to your Microsoft account on all devices, as well as enabling "Visibility for local network" in the game settings.
Setting up a firewall and antivirus
One of the most common reasons why friends can't connect to your world is the built-in Windows Defender firewall or third-party antivirus software. They block incoming connections, considering them potentially dangerous.
To fix this, open the Firewall control panel. Type "Firewall" in Windows Search and select "Allow an app through Windows Firewall." Click "Change settings" (requires administrator privileges).
Find in the list Java(TM) Platform SE binary or javaw.exeMake sure the boxes next to them are checked in the "Private" and, if necessary, "Public" columns. If Java isn't found, click "Allow another app" and specify the path to the Java executable file used by Minecraft.
| Component | Status | Action |
|---|---|---|
| Java Platform SE | It's blocked | Allow access |
| Minecraft Launcher | Allowed | Check the checkboxes |
| javaw.exe | Unknown | Add a rule |
| Port 25565 | Closed | Open for TCP/UDP |
If you're using a third-party antivirus (Kaspersky, ESET, Avast), its built-in firewall may ignore Windows settings. In this case, try temporarily disabling network protection while playing or adding Minecraft to your antivirus's exceptions.
What to do if the antivirus deletes files?
Some aggressive antivirus programs may quarantine launcher or mod files. Check your protection log and restore the files by adding the game folder to the exclusions list.
Common mistakes and how to solve them
Even if you follow all the instructions, specific issues may arise. Understanding the nature of these errors will help you quickly get your game back up and running. Most often, problems are related to version incompatibilities or network conflicts.
The "Connection Refused" error usually means the server is running, but the port is closed or in use by another program. Try restarting the server on the host to change the port, or check if your antivirus software is blocking the connection.
If the server simply doesn't appear in the list but connects via IP, the problem lies with the UDP discovery protocol. This is normal for some routers. Use the manual connection method described above.
- 🔄 Rebooting the router: Sometimes it helps to reset the DHCP cache and issue new correct addresses.
- 📉 Ping:** check the connection with the command
ping 192.168.1.Xin the command line. - 🆔 Nicknames: Make sure all players have unique nicknames, otherwise the second player will throw out the first one.
It's also worth remembering that when using mods that require server-side installation (for example, OptiFine sometimes behaves strangely online), they must also be installed on client machines if the mods affect rendering or game logic.
Is it possible to play on a local network with different versions of Minecraft?
Officially, no. The game protocol strictly checks the client and server versions. However, there are adapter mods (such as ViaVersion for servers) that allow connections from different versions, but for a simple LAN game, it's easiest for all players to update to the same version.
What is the maximum Wi-Fi range for gaming?
The range depends on the router and walls. For stable, lag-free gaming, the distance shouldn't exceed 10-15 meters indoors. If the signal is weak (1-2 bars), connection drops are possible.
Do you need internet to play on a local network?
Internet access is only required to access the launcher and verify the license when launching the game. After the world has loaded and the LAN port has opened, you can disconnect the internet connection; the game will continue to run within the local network.
Why does it throw the error "Internal Exception: java.io.IOException"?
This error often occurs when the Wi-Fi signal is unstable or the channel is overloaded. Try reducing the distance to the router, closing torrents on other devices, or switching to the 5 GHz band if your router supports it.