Game of Minecraft with friends on a local network through one Wi-Fi-a router is a great way to have fun without having to buy a server or pay for Minecraft RealmsHowever, many people encounter problems: devices don't see each other, lag occurs, or they can't connect at all. In this article, we'll look at all the current ways to organize a cooperative game, one by one. Wi-Fi on different platforms - from Java Edition to Bedrock Edition, including consoles and mobile devices.
The main difficulty is that modern routers often block local communication between devices by default (function AP Isolation or Client Isolation). Furthermore, network settings can vary dramatically across different versions of the game. We'll cover not only basic instructions but also troubleshooting solutions—from errors "Unable to connect to the world" to problems with NAT type on consoles.
If you've never set up a local network for gaming before, don't worry: most of the steps involve changing a few settings on your router and properly configuring the host device. The key is to make sure everyone is connected. the same Wi-Fi network (not through guest access!) and use compatible versions of the game.
At the end of the article you will find FAQ with answers to frequently asked questions, including connection features via hamachi (if Wi-Fi is not suitable) and the differences between Java And Bedrock editorial offices. Let's start with the simplest thing—computer games.
1. Preparing the router: enabling local interaction
Before setting up the game itself, you need to make sure that your router allows devices to "see" each other. By default, many models (especially from TP-Link, ASUS And Xiaomi) block traffic between clients on the same network for security reasons. Here's what to do:
Step 1: Disable Client Isolation
Go to the router's web interface (usually at 192.168.0.1 or 192.168.1.1) and find the settings Wireless or Wireless modeLook for options like:
- 🔄 AP Isolation / Client Isolation — turn it off (
Disable) - 🌐 Enable Intra-BSS Traffic Blocking - turn it off (if any)
- 🔒 Multicast Rate - install on
Autoor1 Mbps(for stability)
Step 2: Check DHCP and local IP
Make sure all devices are receiving IP addresses from the same range. To do this, go to your router settings (LAN or DHCP) check:
- 📌 IP pool: for example, with
192.168.0.100to192.168.0.200 - 🔢 Subnet mask: should be
255.255.255.0 - 🔄 IP lease time: better to install
24 hoursor more
⚠️ Attention: If you have a dual-band router (2.4 GHz + 5 GHz), make sure all devices are connected to the same frequencySome games (especially console games) do not support interaction between devices on different bands.
2. Playing on a local network in Java Edition (PC)
Minecraft: Java Edition Supports LAN play out of the box, but there are some nuances with setting up the host device. Here are the step-by-step instructions for the version 1.20+:
Step 1: Launch the world on the host PC
- Create or open an existing world in the mode
Single player. - Click
Esc→Open to local network. - Select a game mode (
Survival,Creationetc.) and permissions for other players. - Remember the port that appears in the chat (for example,
Port 12345).
Step 2: Connecting other players
On the second PC:
- Launch Minecraft →
Network game→Direct connection. - Enter the IP address of the host PC in the format
192.168.x.x:12345(Where12345— port from chat). - If the connection fails, please check Windows Firewall (see next section).
Problems and solutions:
- 🚫 "Unable to connect to the world":
- Check that the host PC is turned on
Network accessin Windows settings (Control Panel → Firewall → Allow the app to interact with you). - Disable VPN or proxy on both PCs.
- Check that the host PC is turned on
- 🔌 Lags and delays:
- Set traffic priority on your router for Minecraft (
QoS→ add the game port). - Switch to a wired connection for the host PC.
- Set traffic priority on your router for Minecraft (
Client isolation is disabled in the router|All PCs are connected to the same Wi-Fi network|A port is open in the firewall on the host PC|The game versions on all PCs are the same-->
3. Bedrock Edition: connection on Windows 10/11, Android and iOS
Bedrock Edition (aka Minecraft for Windows 10/11, Pocket Edition (on mobile and console versions) uses the protocol RakNet for online play, which makes setup more difficult than Java EditionIt is important to set it up correctly here. NAT type on the router.
Step 1: Configuring the host device
On the device that will be the host (for example, on a PC with Windows 10):
- Launch the world and click
Pause → Settings → Multiplayer. - Enable options:
Local area network— OnVisibility on the local network— All players
19132 For Bedrock).Step 2: Connecting from other devices
On the second device (for example, on Android):
- Launch Minecraft →
Play → Friends→ tabLocal area network. - Wait for the host world to appear in the list. If it doesn't:
- Make sure both devices are on the same network (not via mobile internet!).
- Restart the world on the host device.
Features for consoles (Xbox, PlayStation, Nintendo Switch):
- 🎮 On Xbox And PlayStation check NAT type in the network settings. It should be
Open (Type 1)orModerate (Type 2). IfStrict (Type 3)— the game will not work over a local network. - 🔧 On Nintendo Switch Local play via Wi-Fi is only supported in version
1.18.0+Update the game via eShop.
⚠️ Attention: On consoles Sony And Nintendo may be required disable cross-platform play in the world settings if you're only connecting via a local network. Otherwise, the system will try to sync with the servers. Xbox Live.
| Platform | Default port | Do you need port forwarding? | Does it support cross-platform? |
|---|---|---|---|
| Java Edition (PC) | 25565 | No (if playing on LAN) | No |
| Bedrock (Windows 10/11) | 19132 | Yes (for open NAT) | Yes |
| Pocket Edition (Android/iOS) | 19132 | Yes (for open NAT) | Yes |
| Xbox One/Series X|S | 19132-19133 | Yes | Yes |
| PlayStation 4/5 | 19132, 3074 | Yes | Yes |
4. Port forwarding for stable gaming (if LAN is not working)
If the devices do not see each other even after disconnecting AP Isolation, perhaps the router is blocking traffic on ports MinecraftIn this case, you will need to manually forward ports (port forwarding). The instructions are universal for most routers:
Step 1: Find the local IP of the host device
On the host PC (or console), run the command in Command line (Win + R → cmd):
ipconfig
Remember the value IPv4 address (For example, 192.168.0.105).
Step 2: Setting up forwarding on the router
- Go to the router's web interface (
192.168.0.1or192.168.1.1). - Find the section
Port Forwarding(orPort forwarding,Virtual servers). - Add a rule:
- Name:
Minecraft JavaorMinecraft Bedrock - Service port:
25565(For Java) or19132-19133(For Bedrock) - Local IP: IP of the host device (from
ipconfig) - Protocol:
TCP/UDP(or both separately)
- Name:
Step 3: Check if the port is open
On the host PC, check if the port is open using the command:
netstat -a | findstr 25565
If the port not displayed in the list LISTENING, check your Windows firewall and antivirus (for example, Avast or Kaspersky online games are often blocked).
⚠️ Attention: After forwarding ports, your world will become accessible not only via the local network, but also from the Internet (if you have white IPTo avoid unwanted connections, set a strong password for your world or disable forwarding after the game.
5. Alternative methods: Hamachi and ZeroTier (if Wi-Fi is not suitable)
If playing over a single Wi-Fi connection is not possible (for example, due to provider or router restrictions), you can use virtual private networks (VPN) like Hamachi or ZeroTierThese programs create a virtual local area network over the Internet, emulating a direct connection.
Instructions for Hamachi (free version for up to 5 devices):
- Download and install LogMeIn Hamachi to all devices from the official website.
- On the host PC:
- Create a new network (
Network → Create a new network). - Set your name and password.
- Create a new network (
Network → Connect to an existing network).5.x.x.x).Pros and cons of Hamachi:
- ✅ Easy to set up (no port forwarding required).
- ✅ Works even if the devices are on different networks.
- ❌ Lags are possible due to intermediate servers.
- ❌ The free version is limited to 5 devices.
ZeroTier (a better performing Hamachi alternative):
ZeroTier Works similarly, but supports more devices and has lower latency. Instructions:
- Register for
my.zerotier.comand create a network. - Install ZeroTier on all devices and log in.
- In the control panel, add devices to your network.
- Use
ZeroTier IP(starts with192.168.192.x) to connect in Minecraft.
How to reduce lag in Hamachi/ZeroTier?
Use servers closest to your region (in the program settings).
Disable other VPN programs (eg. NordVPN or ProtonVPN).
Turn on the router QoS and set the priority for Minecraft (port 25565 or 19132).
6. Network optimization for lag-free gaming
Even if you have a good connection, lag and delays can ruin your gaming experience. Here's how to minimize these issues:
Router settings for stability:
- 📶 Switch Wi-Fi band
5 GHz(if supported) It is less loaded than2.4 GHz. - 🔄 Turn on
QoS(Quality of Service) and set the priority for the host device IP. - 📡 Turn off
Band Steering(if any) to prevent devices from switching between bands automatically.
Settings on devices:
- 🖥️ On your PC, disable downloads (torrents, updates) Steam/Epic Games).
- 📱 On mobile devices, enable
Game mode(if any) or disable background apps. - 🎮 On consoles, close other games and applications (e.g. YouTube or Netflix).
Checking speed and packet loss:
If lags persist, check the quality of the connection to the host device:
- On the second PC, run the command:
ping 192.168.0.105 -t(Where
192.168.0.105— host IP). - If
response time > 50 msor there is packet loss (Requests lost = 1%), network problem:- Try connecting the host PC via cable.
- Reduce the number of devices on your network (turn off smartphones, smart speakers, etc.).
7. Common mistakes and their solutions
Even with proper setup, errors can still occur. Here are the most common ones and how to fix them:
Error: "Unable to connect to the world" (Java Edition)
- 🔍 Reason 1: Firewall is blocking Minecraft.
- Solution: Add an exception for
javaw.exeVWindows Firewall.
- Solution: Add an exception for
- 🔍 Reason 2: Different versions of the game.
- Solution: Make sure that all PCs have the same version (For example,
1.20.4).
- Solution: Make sure that all PCs have the same version (For example,
- 🔍 Reason 3: Antivirus is blocking the network.
- Solution: Temporarily disable your antivirus or add Minecraft in exceptions.
Error: "Unable to connect to host" (Bedrock Edition)
- 🔍 Reason 1: NAT type
Strict (Type 3)on the console.- Solution: Set up port forwarding
19132-19133And3074(For PlayStation).
- Solution: Set up port forwarding
- 🔍 Reason 2: The devices are connected to different subnets (for example, one to
2.4 GHz, other to5 GHz).- Solution: Connect all devices to one frequency Wi-Fi.
Error: "Too many connections" (on the server)
- 🔍 Cause: The world settings limit the number of players.
- Solution: In the file
server.properties(For Java Edition) change the parametermax-players=10.
- Solution: In the file
⚠️ Attention: If you play on Bedrock Edition through Xbox Live, make sure all players have an account Microsoft and multiplayer access is enabled in the privacy settings (Settings → Account → Privacy & Online Safety).
FAQ: Answers to Frequently Asked Questions
Can I play on a local network if I have mobile internet (4G/5G) instead of Wi-Fi?
No. To play on a local network, all devices must be connected to one router Via Wi-Fi or cable. Mobile internet (even when used as a hotspot) creates a separate network, and devices won't see each other.
Alternative: Use Hamachi or ZeroTier to create a virtual network via the Internet.
Why can't I see the world opened from PC (Bedrock Edition) on Android?
Possible reasons:
- The option is not enabled on the PC
Visibility on the local network(see section 3). - The devices are connected to different subnets (for example, a PC to
5 GHz, and the phone to2.4 GHz). - Client isolation is enabled on the router (
AP Isolation).
Solution: Check all three points and restart the world on the host device.
How do I play on LAN if I have a Mac and a PC?
Cross-platform play between Java Edition (Mac/PC) and Bedrock Edition (Windows 10/mobile) impossible over a local network - these versions use different protocols.
Options:
- Play only on Java Edition (install on all PCs).
- Play only on Bedrock Edition (including Mac via Minecraft for Windows under the emulator).
- Use an external server or Minecraft Realms.
How to reduce lag when gaming over Wi-Fi?
List of actions by priority:
- Connect the host device (where the world is running) to the router via cable.
- Switch Wi-Fi to a range
5 GHz(if supported). - Enable it in your router settings.
QoSand set the priority for the host device IP. - Disconnect other devices from the network (smartphones, smart TVs, etc.).
- Reduce the number of mobs and redstone in the world (they put a strain on the network).
Is it possible to play on a local network without the Internet?
Yes, internet is not required if:
- All devices are connected to one router (even if he doesn't have internet access).
- You are playing Java Edition or Bedrock Edition without authorization Xbox Live (for consoles, internet is required to log in).
Note: On consoles (Xbox, PlayStation) You will still need internet access to log into your account, but the LAN game itself will work offline.