How to play Minecraft with a friend on a local network via WiFi

Playing co-op in a cube world is one of the best ways to spend time with friends without having to rent expensive dedicated servers. Local area network Allows you to connect multiple computers or devices into a single gaming zone using your home router. It's the fastest and free way to start cooperative survival or large-scale construction projects.

However, despite the apparent simplicity, the setup process often causes difficulties for beginners. Windows may block the connection, antivirus programs may interfere with packet transmission, and different game versions may create incompatibilities. In this article, we will examine in detail the technical aspects of creating LAN serversso you can focus on the game, not debugging network protocols.

For a successful connection, it is critical that all devices are on the same subnet. Make sure your router distributes IP addresses in the 192.168.xx range to all connected gadgets. If one computer receives an address directly from the ISP, and the other from the router, they will not “see” each other in the list of available worlds.

Technical requirements and equipment preparation

Before launching the game, you need to make sure that the physical layer of the network is working properly. Wireless connection Wi-Fi can be less stable than cable, especially when transmitting large amounts of data generated by world chunks. It's recommended that the host computer (running the world) and the client be connected to the same access point.

All participants must have the same game version. This applies not only to the version number, for example 1.20.4, as well as installed modifications. If you're using a clean game, there are usually no issues, but Forge or Fabric require all players to have the same set of plugins.

Please check your router's bandwidth. For a smooth, lag-free gaming experience, the standard is recommended. 802.11n or newer (ac, ax). Older devices may not be able to synchronize player and mob positions in real time.

📊 What type of connection do you have to your router?
WiFi 2.4 GHz
WiFi 5 GHz
Cable (LAN)
Mobile Internet

⚠️ Note: If you're using a guest WiFi network on your router, devices on it may be isolated from each other. To play, you must disable "AP Isolation" or "Client Isolation" in your router settings.

Setting up a network in the Windows operating system

The operating system often treats new connections as public, which automatically enables strict security rules. To allow computers to exchange data, you need to change the network profile to "Private." This will open the ports needed for local detection.

Go to Windows Settings, select Network & Internet, then Status. In the Properties section of your WiFi network, switch the profile from Public to Private. This will allow other devices to see your computer as available.

Next, you should check your sharing settings. Open Control Panel, go to Network and Sharing Center, and select Change advanced sharing settings. Enable the following options:

  • 📡 Enable network discovery
  • 💾 Enable file and printer sharing
  • 🔐 Allow management of HomeGroup connections

Be sure to save your changes by clicking the corresponding button at the bottom of the page. Without this step, Windows Firewall may block incoming connections from your friend, even if the game is running correctly.

Creating a server in Minecraft Java Edition

Launch the game on the computer that will act as the host. Enter single-player mode and select the world you want to play in. If there isn't one, create a new one, making sure "Cheats" is enabled in the world settings (this will make server management easier, although it's not strictly necessary).

While in the world, press the key Esc to exit to the pause menu. In the list that opens, select the button Open to the web (Open to LAN). In the window that appears, you can configure the game mode for your friends and allow or disallow cheats for them.

After pressing the button Open the world to the web A message with the port number will appear in the chat, for example: "Local server running on port 54321." This port is critical if automatic detection fails. Write these numbers down.

Local server running on port 25565

Now other players can access the "Multiplayer" section. Your server should appear in the list of available servers after a short while. If it's not there, they can add it manually using the host's IP address and the specified port.

⚠️ Warning: Antivirus programs like Kaspersky or ESET may block Java applications when the server is first launched. Be sure to allow network access for javaw.exe when prompted.

Organizing a Minecraft Bedrock Edition game

Console, smartphone, and Windows 10/11 game owners use the Bedrock engine. The process differs from the Java version. The host needs to go to the world settings, scroll down to the "Multiplayer" section, and ensure the "Visible to LAN Players" toggle is enabled.

It's important to have a Microsoft account enabled on all devices. Without Xbox Live authorization, the network may not detect other devices, even on the same WiFi network. Check your connection status in the game's main menu.

If a server doesn't appear automatically, you can try adding it manually through the "Servers" tab by scrolling to the bottom of the list. However, on a local network, Bedrock typically relies on the UDP discovery protocol, which is sensitive to router settings.

☑️ Pre-launch checklist

Completed: 0 / 5

It's worth noting that cross-platform play is only possible between devices running the Bedrock engine. A PlayStation player won't be able to connect to a PC game running Java Edition, even if they're in the same room.

Resolving server visibility issues

The most common problem is that the server simply isn't visible in the list. In this case, you need to find out the IP address of the host computer. Open the command prompt (Win+R, enter cmd) and enter the command ipconfigFind the "IPv4 Address" line for your WiFi adapter.

Friends need to select the "Add Server" button in the "Network Play" menu (or "Direct Connection" in some versions). In the address field, enter the host IP, followed by a colon and the port the game assigned when opening the world.

Problem Possible cause Solution
The server is not visible Different subnets or client isolation Check your router settings and Windows network profile
Connection error Incorrect port or firewall Check the port in the host chat and add a rule to the Firewall
High ping Weak WiFi signal Move closer to the router or use a cable
Crashes on loading Lack of RAM Close unnecessary programs on the host PC

You should also try completely disabling Windows Firewall while playing for diagnostic purposes. If the connection reappears after this, the issue lies with the traffic filtering rules.

How to forward ports for online gaming?

If you want to play not only over a local network but also over the internet with friends in other cities, you'll need to set up port forwarding on your router. Find the Virtual Server or Port Forwarding section in your router settings, create a new rule for the TCP/UDP protocol, and specify the port Minecraft exposes (25565 by default), forwarding it to the host computer's local IP address.

Optimizing network performance

For stable gameplay, it's important to minimize the load on your connection. If someone on your network is actively downloading files, watching 4K videos, or streaming, Minecraft's ping can increase, causing mobs to "teleport" and block-breaking delays.

Use the 5 GHz frequency if your router supports dual-band operation. It's less congested with neighboring networks and provides higher data transfer rates, although it has a shorter range than 2.4 GHz.

Close background applications on the host computer that actively use the network, such as torrents, cloud syncing apps, and Steam updates. This will free up CPU and bandwidth resources for processing game packets.

Frequently Asked Questions (FAQ)

Is it possible to play over a local network if you have different providers?

No, a local area network (LAN) only works within a single router. If you have different ISPs, your computers are physically on different networks. To play online with different ISPs, you need to use Hamachi, Radmin VPN, or rent a server.

Why do I get the "Outdated server" or "Outdated client" error?

This means that the players' game versions don't match. One of the players must update or downgrade their Minecraft version to match the host's. The versions must be identical up until a minor update.

Do you need internet to play on a local network?

Internet access isn't required for data transfer between computers; a working router is sufficient. However, to log in to the game, verify your license, and log in to Xbox Live (for Bedrock), an internet connection is required at least at the start.

How can I tell my friend my IP address?

On the host computer, press Win+R, enter cmd, then ipconfigYour local IP will be listed in the IPv4 address line, usually looking like 192.168.1.XX or 192.168.0.XX.

Is it possible to play from a phone on a PC?

Yes, but only if Minecraft for Windows 10/11 (Bedrock Edition) is installed on your PC. The Java Edition on PC is not compatible with the mobile version of the game without special bridge plugins.