Minecraft multiplayer transforms solo survival into an exciting cooperative adventure, filled with shared construction and mob battles. However, beginners often face difficulties connecting their computers into a single gaming network without paying for hosting. A local network via a Wi-Fi router is the most accessible and free way to connect players in the same apartment or office.
For a successful connection, it is critical that all devices are connected to the same wireless network, which is distributed by your router. If your computer is connected via cable and your phone via Wi-Fi, they are still on the same network, but security settings may require special attention. In this article, we'll cover all the technical details, from setting up a firewall to choosing the right Java version.
Modern routers automatically assign IP addresses, but sometimes the system needs a little help to correctly display game worlds. We'll cover both the standard method using the built-in "Open to Network" feature and more advanced methods involving manual IP address assignment. Understanding these processes will help you avoid connection errors in the future.
Hardware and software requirements
Before you begin setup, make sure your hardware meets the minimum requirements for stable server operation. The main node here is Wi-Fi router, which must correctly transmit data packets between devices without significant latency. Older 802.11n routers may not be able to handle intensive data transfers if there are many players in a game.
All devices, whether powerful gaming PCs or laptops, must have the same version of Minecraft installed. Inconsistent versions (for example, 1.16.5 and 1.20.1) will prevent you from connecting to the server, as the communication protocols differ. Also, the host (the computer generating the world) must have the latest version of Java installed if you're using Java Edition.
Pay attention to your internet bandwidth. While internet speed isn't important for local gaming, it's the speed of your internal network that matters. If your router is operating in the congested 2.4 GHz band, lag may occur, so switch to 5 GHz often solves ping problems.
⚠️ Attention: Antivirus programs and the built-in Windows Defender may block incoming connections from other players. When you first launch the game, be sure to allow access on your private network.
Preparing Windows network settings
The operating system must allow discovery of other devices on the network. To do this, go to the Network Control Panel and ensure the "Private Network" profile is enabled. On public networks, Windows hides your computer by default, which prevents Minecraft from finding neighbors over Wi-Fi.
Open network settings using a keyboard shortcut Win + R and enter the command ncpa.cplFind your wireless connection, right-click it, and select "Properties." Make sure the protocol box is checked. Internet Protocol version 4 (TCP/4), since it is used for local connection.
☑️ Check network settings
It's important to check that all computers on the network have IP addresses that begin with the same three numbers, for example, 192.168.1.X. The last digit should be unique for each device. If the addresses appear chaotic, there may be a second router on the network, creating a subnet conflict.
Creating a local server in the game
Launch Minecraft on the computer that will act as the host (server). Enter single-player mode and create a new world or select an existing one. Once the world loads, press Esc to call up the pause menu.
In the menu that opens, find the "Open to LAN" button. Clicking it will launch a local server. The game will prompt you to select a game mode for other players (Survival or Creative) and allow cheats. After confirming, a message with the port number will appear in the chat, for example: "Local server running on port 54321."
The local server is running on port 25565.
Write down this port number; you'll need it if automatic detection fails. Your computer is now broadcasting a signal about the game world's presence, waiting for connections from other devices within Wi-Fi range.
What to do if the port is not displayed?
If the port number doesn't appear in the chat, try re-creating the world. Sometimes temporary game files can cause network socket initialization errors. Also, make sure you have the full version of Java installed, not just the JRE.
Connecting clients to the server
On other computers or laptops connected to the same Wi-Fi network, launch the same version of Minecraft. Go to the "Multiplayer" menu. Ideally, the created world should appear in the list of available servers automatically within a few seconds.
If the server isn't visible in the list, use the "Direct Connect" button. You'll need to find the IP address of the host computer. To do this, click Win + R, enter cmd and in the black window enter the command ipconfigFind the "IPv4 Address" line under your wireless adapter.
| Parameter | Value on host | Value on the client |
|---|---|---|
| IP address | 192.168.1.15 (example) | 192.168.1.20 (example) |
| Port | 25565 (or random) | 25565 (or random) |
| Status | Creates the world | Connects |
In the address field, enter the host's IP address. If you changed the port when creating the world, add it separated by a colon, for example: 192.168.1.15:25565After clicking "Connect," the game will establish a connection to the local server.
⚠️ Attention: If you're using a third-party antivirus (Kaspersky, ESET, Avast), its built-in firewall may block the connection even if Windows allows it. Try temporarily disabling network protection to test.
Configuring Windows Defender Firewall
Most often, the problem lies in Windows security settings. The firewall may be blocking incoming connections from Java applications. To fix this, open the firewall control panel using Windows search.
Select "Allow an app or feature through Windows Firewall." Find it in the list. Java(TM) Platform SE binary or javaw.exeMake sure both network types are checked: "Private" and "Public."
If the app you want isn't listed, click "Change settings," then "Allow another app," and specify the path to the Java executable file. It's usually located at C:\Program Files\Java\jre1.8.0_xxx\bin\javaw.exe.
Troubleshooting visibility and connectivity issues
Sometimes players see the server but are unable to connect, receiving the error "Connection timed out" or "Connection refused." This is often due to the router isolating clients from each other. Check your router's Wi-Fi settings: AP Isolation (Access Point Isolation) must be disabled.
Also, make sure all computers have the same mod pack installed if you're using a modified client. Missing even one mod or a difference in Forge/Fabric versions will cause the connection to disconnect immediately upon logging in.
If you're using Windows 10/11 Edition (Bedrock), the principle is the same, but the system's UWP port is used instead of Java. It's important to ensure that online interactions are enabled in your Xbox privacy settings.
Why does the server disappear from the list after some time?
A local Minecraft server is not persistent. It exists only while the host has the world open. If the host pauses the game or minimizes the window, the server may stop responding to discovery requests. Furthermore, the router may change the device's IP address upon reconnection, requiring the address to be re-entered manually.
Is it possible to play via Wi-Fi from a phone to a PC?
Yes, this is possible, but only if you have Minecraft for Windows (Bedrock Edition), which is available in the Microsoft Store, installed on your PC. The Java Edition on PC is not directly compatible with the mobile version without special bridge plugins, such as GeyserMC, which require server software.
What maximum ping is considered normal?
For comfortable gaming on a local Wi-Fi network, ping should be no more than 10-20 ms. If values are higher than 50-60 ms, delays when placing blocks or taking shots are possible. High ping within a single apartment usually indicates excessive noise in the air or an overloaded router channel.