Play Minecraft with a friend through one Wi-Fi network — This is one of the easiest ways to organize a co-op adventure without the expense of renting servers or purchasing Realm. However, even on a local network, issues can arise: from the simple "not seeing the world" to lags and crashes. This article will help you understand all the nuances, from choosing the right game version to fine-tuning your router if standard methods fail.
Many users mistakenly think that for local play it is enough to simply open the world to the network - but in practice it requires proper configuration port 25565, check your firewall and sometimes even change the settings Java or Bedrock EditionWe will consider both versions of the game (via LAN world And local server), and we'll also give tips on troubleshooting common errors. If you've never set up a gaming network before, don't worry—the instructions are suitable even for beginners.
⚠️ Attention: Router network settings parameters (for example, UPnP or Port Forwarding) may vary depending on the device model. If your router does not support automatic rules for Minecraft, manual configuration will be required.
1. Preparation: What you need to play over Wi-Fi
Before you begin setting up, make sure you have everything you need:
- 📶 Shared Wi-Fi network: Both devices must be connected to the same router. If used guest network or signal repeater, the connection may not work.
- 🎮 Same Minecraft version: For Java Edition And Bedrock Edition (Windows 10/11, consoles, mobile devices) the setup process is different. You can only play together within the same edition—cross-platform play only works within Bedrock.
- 🔌 Stable power supply for the router: If your router is overheating or operating at its maximum capacity, lag may occur. For gaming, it's best to use a wired connection to the host (if possible).
- 🛠️ Administrator rights: On the PC that will be the host (where the world is running), you will need access to the firewall settings and network parameters.
If you play on Java Edition, make sure you have the latest version installed Java Runtime Environment (You can download it from the official website) Oracle). For Bedrock No additional software is required, but both players must have the latest game updates.
⚠️ Attention: On some corporate or public networks (for example, in universities, hotels) the port may be blocked 25565, used MinecraftIn this case, local play over Wi-Fi is impossible—you'll have to use a VPN or a rented server.
2. Method 1: Playing via LAN-world (for Java Edition)
This is the easiest method for Java Edition, which doesn't require a server installation. One player creates a world and opens it to the local network, while the second player connects via the multiplayer menu.
Steps for the host (the one who creates the world):
- Launch Minecraft and select
Singleplayer → Create a new world(or upload an existing one). - When creating a world, make sure the option is enabled
Allow cheats(optional, but useful for debugging). - Launch the world and click
Esc → Open for LAN. - In the window that appears, select the game mode (
Survival,Creation) and enable cheats (optional). ClickLaunch LAN World. - Remember the port that appears in the chat (usually
25565, but may differ).
Steps for the second player:
- Launch Minecraft and go to
Multiplayer. - The system should automatically detect the LAN world. If this does not happen, click
Direct connectionand enter the host IP address with port in the format192.168.x.x:25565. - Connect to the world.
If the world does not display automatically, check:
- 🔍 Both devices are connected to one Wi-Fi network (not via mobile Internet!).
- 🔥 Windows Firewall doesn't block Minecraft (see section 4).
- 🔄 Port
25565not busy with another application (check viaCommand line:
).netstat -ano | findstr 25565
Both devices are on the same network|Same Minecraft version|Host is running a LAN world|Firewall allows connections|Port 25565 is free-->
3. Method 2: Local Server for Bedrock Edition
IN Bedrock Edition (including Windows 10/11, Xbox, PlayStation and mobile versions) there is no built-in LAN world feature like in JavaInstead, you'll have to use local server or cloud solutions like Minecraft RealmsWe'll look at the free option with a PC server.
Option A: Official Bedrock Server (Windows/Linux)
Microsoft provides a free server for Bedrock Edition, which can be run on a PC:
- Download the server from official website (file
bedrock-server-x.x.x.x.zip). - Unzip the archive into a separate folder and run
bedrock_server.exe. - Configuration files will be generated on first run. Open
server.propertiesin notepad and find the lines:server-name=My Bedrock Servergamemode=survival
difficulty=normal
level-name=Bedrock level
server-port=19132Change the settings as desired (eg.
gamemode=creative). - Save the file and restart the server.
Option B: Connecting from a mobile/console
To connect to the server from other devices:
- On the host PC (where the server is running), find the local IP address via
Command line:ipconfigLook for the line
IPv4 address(usually192.168.x.x). - On your mobile device or console in Minecraft select
Play → Servers → Add Server. - Enter the host IP address and port
19132(For example,192.168.1.100:19132). - Connect to the server.
⚠️ Attention: On consoles (Xbox, PlayStation) you may need Xbox Live subscription or PlayStation Plus Even for local play. Check the terms in your account settings.
How to Find an IP Address on Mac/Linux
For Mac: Open Terminal and enter ifconfig | grep "inet " (look for an address like 192.168.x.x).
For Linux: Use the command hostname -I or ip a.
4. Configuring your router for stable gaming
If your connection isn't working or drops frequently, the problem may be with your router settings. Here's what to check:
| Parameter | Recommended value | Where to find |
|---|---|---|
UPnP (Universal Plug and Play) |
Included | Settings → Local Network → UPnP |
Port Forwarding For Java |
Port 25565 (TCP/UDP) to host IP |
Port Forwarding → Add Rule |
Port Forwarding For Bedrock |
Port 19132 (UDP) to host IP |
Same menu as for Java |
DHCP (automatic IP assignment) |
Enabled (or reserve IP for host) | Local Area Network → DHCP |
QoS (Quality of Service) |
Priority for the host device | Settings → QoS → Rules |
How to configure Port Forwarding manually:
- Go to your router's control panel (usually at
192.168.0.1or192.168.1.1). - Find the section
Port forwarding(orPort Forwarding). - Add a new rule:
- For Java Edition: port
25565, protocolTCP/UDP, host IP address. - For Bedrock: port
19132, protocolUDP, host IP address.
- For Java Edition: port
⚠️ Attention: After setup Port Forwarding Your local server will be vulnerable to external attacks if your router's IP address is known to third parties. Don't share it publicly and disable forwarding when you're not playing.
5. Solving typical problems
Even with proper setup, errors can still occur. Here are the most common ones and how to fix them:
- 🚫 "Unable to connect to the world":
- Make sure the host is running the world in LAN mode (for Java).
- Make sure your firewall isn't blocking Minecraft (see below).
- Try connecting via direct IP (for example,
192.168.1.100:25565).
- 🐢 Severe lags or crashes:
- Close background programs that consume internet (torrents, streams).
- Reduce the number of mobs in the world settings (
difficulty=peaceful). - If you are playing on a weak PC, reduce the render distance (
F3 + FV Java).
- 🔒 "Server not responding" (for Bedrock):
- Check that the port
19132open in firewall. - Make sure the server is running on the host (
bedrock_server.exe). - Try turning it off
UPnPin the router and configurePort Forwardingmanually.
- Check that the port
How to open a port in Windows Firewall:
- Open
Control Panel → Windows Firewall → Advanced settings. - Select
Inbound Rules → Create Rule. - Please specify
For the port→TCP→25565(or19132for Bedrock). - Allow the connection and apply the rule to all profiles (domain, private, public).
6. Game Optimization: How to Reduce Lag
Even on a local network, latency can occur, especially if the host is a slow PC or the router is overloaded. Here's how to improve performance:
- ⚡ For host (PC):
- Close all background programs (especially your browser with open tabs).
- In the settings Minecraft reduce
Video memory(VSettings → Video settings). - Use light textures or shaders (eg. OptiFine with settings
Fast).
- 📡 For router:
- Switch to the channel
5 GHz(less interference). - Turn off devices not used for play (smart bulbs, TVs).
- If the router supports
QoS, set the priority for the host IP address.
- Switch to the channel
- 🎮 For the player (if the client lags):
- Reduce the render distance to
4-8 chunks. - Turn it off
CloudsAndParticle effectsin the graphics settings. - Use a wired connection (if possible).
- Reduce the render distance to
Advanced optimization for Java Edition:
If lags persist, try running the server with additional parameters. JavaTo do this:
- Create a text file
start.batin the server folder. - Add the following line to it:
java -Xmx2G -Xms1G -jar server.jar noguiWhere
-Xmx2G— maximum RAM for the server (specify no more than half of the available PC memory). - Save the file and run it.
7. Alternative ways to play with a friend
If playing over Wi-Fi doesn't work or is inconvenient, consider alternatives:
- 🌍 Minecraft Realms:
- Official hosting from Mojang, supports up to 10 players.
- Cost: from ~300 rubles/month (as of 2026).
- Pros: cross-platform, automatic backup.
- Cons: paid, limited mods.
- 🖥️ Rented server:
- Services like Aternos (free) or Shockbyte (paid).
- Pros: access from any network, mod support.
- Cons: possible lags, slot limitations.
- 🔗 Hamachi/ZeroTier:
- Programs for creating a virtual local area network via the Internet.
- Pros: Works like a local game, but over the Internet.
- Cons: high latency, requires configuration.
⚠️ Attention: When using Hamachi or similar services, your IP address may become visible to other users of the program. Do not share account login information. Minecraft or personal information.
8. Security: How to protect your game
A local server is vulnerable to attack if you don't take precautions. Follow these tips:
- 🔐 Restrict access:
- Do not share the server IP address outside your trusted circle.
- Use whitelist (
whitelist=trueVserver.properties) and add only friends' nicknames to it.
- 🛡️ Update your software:
- Update regularly Minecraft and server software.
- Install the latest version Java (For Java Edition).
- 🔍 Mods and plugins:
- Download mods only from official sources (CurseForge, Modrinth).
- Check files for viruses before installation.
- 📡 Router settings:
- Turn it off
Port Forwarding, when you're not playing. - Use a strong password for Wi-Fi (standard
WPA3).
- Turn it off
How to enable whitelisting on the server:
- Open the file
server.properties(For Java or Bedrock). - Find the line
white-list=falseand change totrue. - Save the file and restart the server.
- Open the server console and enter:
whitelist add NicknameWhere
Nickname- friend's nickname.
FAQ: Answers to frequently asked questions
Can I play with a friend on different versions of Minecraft?
No, co-op play requires the same version (for example, 1.20.4). The exception is servers with plugins like ViaVersion, which allow you to connect from different versions, but this does not always work reliably.
Why can't my friend see my LAN world even though we're on the same network?
Check:
- The host is in the enabled mode
Open for LAN. - The firewall does not block Minecraft (add exception for port
25565). - Both devices are connected to one subnets (for example,
192.168.1.x, and not192.168.0.x). - It's enabled on the router.
UPnPor configuredPort Forwarding.
If nothing helps, try connecting via direct IP (see section 2).
How to play Minecraft on Wi-Fi on Android/iOS?
Available on mobile devices only Bedrock EditionYou will need:
- Launch the server on your PC (see section 3).
- On a mobile device in Minecraft choose
Play → Servers → Add Server. - Enter the PC's IP address and port
19132.
⚠️ On Android You may need to disable battery optimization for Minecraft, otherwise the game will turn off in the background.
Is it possible to play via mobile internet (4G/5G)?
No, for local play over Wi-Fi both devices must be connected to one routerIf you want to play via a mobile network, you will need:
- Rented server (eg. Realms or Aternos).
- A program for creating a VPN network (for example, ZeroTier).
Please note that playing over a mobile internet connection may result in high latency and data usage.
How do I transfer a world from a single-player game to a server?
For Java Edition:
- Find the world folder in
%appdata%\.minecraft\saves. - Copy the world folder to the folder
worldson the server. - In the file
server.propertiesplease indicatelevel-name=world_folder_name.
For Bedrock Edition:
- Export the world through
Settings → World Export(on mobile or console). - Transfer the file to your PC and unzip it into a folder
worldsservers.