How to play Minecraft on a local network via Wi-Fi on PC

Launching a co-op game in Minecraft With friends sharing an apartment or office, it's often the best way to spend time. A local area network (LAN) allows you to create a server without the need for paid hosting or complex cloud settings. All you need is a properly configured Wi-Fi router and several computers connected to the same network.

However, despite its apparent simplicity, the process often runs into technical obstacles. Windows Firewall, different game versions, or the wrong network type can hide the created world from other players. In this guide, we'll walk you through every setup step, eliminating common errors.

The main goal is to ensure a stable connection between devices so that latency (ping) is minimal and chunks load without interruption. The key condition is that all computers are located in the same subnet, that is, the first three digits of the IP address of all devices must match. If you use a router with the 192.168.1.x range, then all players' addresses will begin with these numbers.

Checking network settings and profile type

The first step before launching the game is to ensure that your operating system allows discovery of other devices. Windows may set the default network profile to "Public," which prevents your computer from being visible to others. You'll need to change this status to "Private" or "Home."

To do this, go to Settings → Network & Internet → StatusClick on your Wi-Fi connection name. In the menu that opens, select the "Private" profile. This will open ports for local data exchange, which is critical for Minecraft server operation.

It's also worth checking that all computers are connected to the network you plan to use. It's common for one device to be on the guest Wi-Fi and another to be on the main Wi-Fi, preventing them from physically "seeing" each other, even when they're in the same room.

⚠️ Attention: If you're using a corporate network or dorm Wi-Fi, administrators may have blocked the ability to create local servers at the router level. In this case, the default setup won't work; you'll need to create a virtual router.

Configuring Windows Firewall for Java

The most common reason why friends can't see your world is that the connection is blocked by built-in antivirus software or a firewall. The Windows security system strictly monitors incoming connections to the port. 25565, which is used by default.

You need to add an exception to your firewall rules. Open Control Panel, go to "Windows Defender Firewall," and select "Allow an app." Find it in the list. Java(TM) Platform SE binary or javaw.exe and make sure that the boxes next to "Private" and "Public" are checked.

If the program doesn't search for you by default, create a rule manually. Select "Advanced Options," then "Inbound Rules" → "Create Rule." Specify the TCP port. 25565 and allow the connection. This ensures that data packets from other players are not dropped by the system.

Creating a world and running a local server

Once the network is ready, you can begin creating the gaming space. Launch Minecraft on the computer that will act as the host (server). It is important that all computers have Minecraft installed. the same version games, including the build number, otherwise the connection will not be possible.

Create a new world or load an existing one. Once you're inside the game, press the Esc to exit to the pause menu. From the list of options, select "Open to LAN." Here you can set up a friend-only game mode and enable cheats.

After confirmation, a message will appear in the chat: "Local Area Network running on port..." Remember or write down the number after the colon. This is the port number other players will need to connect directly if the automatic search fails.

☑️ Ready to launch

Completed: 0 / 5

Connecting players to the server

Players who want to join should launch the game and go to the "Network Game" section. The server will usually appear in the list automatically within a few seconds. If you see your host name and world name, simply click "Connect."

If the automatic search fails to produce results, a manual connection by IP address is used. The host needs to know its local IP address. To do this, click Win + R, enter cmd and in the black window enter the command:

ipconfig

Find the line "IPv4 address". It will look like this: 192.168.x.x or 10.0.x.x. This combination of numbers, along with the port (separated by a colon), needs to be passed on to your friends. For example, if the IP 192.168.1.55, and the port 54321, then you need to enter: 192.168.1.55:54321.

📊 Which version of Minecraft do you have installed most often?
Java Edition 1.20+
Java Edition 1.16 and below
Bedrock Edition (Windows 10/11)
I don't play, but I want to learn.

Table of problems and solutions

Even if all instructions are followed, specific errors may still occur. Below is a table to help quickly diagnose the problem by matching the symptoms with possible causes and solutions.

Symptom Probable cause Solution method
The server is not visible in the list Blocked by firewall Add Java to exceptions, check network type
Error: "Connection refused" Invalid IP or Port Double-check the host IP and port number after the colon
High ping and lags Weak Wi-Fi signal Move closer to the router or use an Ethernet cable
Crash when connecting Version/mod mismatch Synchronize game versions and mod sets for all players

Please note that when using modifications (Forge, Fabric), the mod set must be identical on all computers. Missing even one modification file on a client will result in a disconnect or inability to log in.

Optimizing your Wi-Fi connection for gaming

A wireless connection is always less stable than a wired one. For a comfortable Minecraft experience, especially with a large draw radius, channel bandwidth is essential. If your router is dual-band, be sure to connect all gaming PCs to the network. 5 GHz.

The 2.4 GHz frequency is often overloaded with signals from neighboring routers, microwaves, and Bluetooth devices, causing packet loss. In Minecraft, this manifests itself as players being "teleported" backwards or blocks getting stuck while placing.

What to do if 5 GHz doesn't work in the room?

If the 5 GHz signal is too weak due to walls, try moving your router higher or using a Wi-Fi extender that supports this frequency. However, for stable gaming, it's best to run a long Ethernet cable, as wireless extenders often cut your speed in half.

It's also worth limiting background downloads on other devices. If someone is simultaneously watching 4K videos or downloading files via torrent, this will create a packet queue, causing the game to become choppy. Prioritize traffic for gaming devices in your router settings (QoS), if available.

⚠️ Attention: Router and operating system interfaces may differ depending on the firmware version or Windows update. The layout of menu items may be changed by developers, so look for similar names if an exact match is not found.

Alternative ways of organizing a network

If a standard local network via a Wi-Fi router is unstable or impossible (for example, devices are in different rooms with a poor signal), you can use software local network emulators. Programs like Hamachi, Radmin VPN or ZeroTier create a virtual network adapter.

These utilities allow you to connect computers into a single network via the internet, as if they were connected via a single cable. This is ideal if the direct Wi-Fi signal is too weak, but all participants have internet access. The connection principle remains the same: a server is created, and friends connect using a virtual IP address.

However, such solutions add a slight latency due to traffic encryption and routing through external servers. This isn't critical for regular construction, but it can be noticeable in PvP battles. In any case, this is an excellent alternative when a physical local network can't cope.

Why can my friends see the server but can't connect?

Most often, the problem lies with the antivirus's firewall, which allows detection (UDP packets) but blocks the connection (TCP). Another possible cause is a mismatch in game versions: even a difference of one digit (for example, 1.19.2 and 1.19.3) will prevent the connection.

Is it possible to play on a local network with different versions of Minecraft?

No, the standard game protocol requires a complete match between versions. However, there are special mod plugins (such as ViaVersion for servers) that allow connections from different versions, but for regular local play via "Open to Network," the versions must be identical.

How do I find out my IP address if the ipconfig command closes quickly?

If the command prompt window closes immediately after you enter a command, try entering cmd In Windows search, right-click on "Command Prompt" and select "Run as administrator." Then type ipconfig and press Enter. The window will remain open until you close it.