Minecraft — is a game that becomes even more interesting in the company of friends. But how to organize a joint game through Wi-FiIf you don't have access to paid servers or just want to play with two people on a local network, what's the solution? In this article, we'll cover every step: from setting up your router to creating your own server and connecting a second player.
Many people mistakenly think that multiplayer requires a dedicated server or a subscription. Minecraft Realms. In fact, if both computers are connected to the same Wi-Fi networks, you can set up a game over a local area network (LAN) without any extra costs. The main thing is to properly configure the network, open the necessary ports, and synchronize the game versions.
We will look at two main methods: through the built-in LAN mode (For Java Edition) and using your own server (suitable for both versions of the game). We'll also discuss common connection errors and provide tips on optimizing your network for stable play.
1. Preparation: What you need to play over Wi-Fi
Before you begin setting up, make sure you have everything you need:
- 🖥️ Two computers (or laptops) with the installed Minecraft Java Edition or Bedrock Edition (depending on the chosen method).
- 📶 One Wi-Fi router to which both devices are connected. Important: If you use a mobile hotspot, connection speed and stability may be reduced.
- 🔌 The same game version must be installed on both PCs. If the versions are different, connection will be impossible.
- 🔒 Administrator rights on the computer that will be the host (to configure the firewall and router).
Also check that your router supports local network between devices. In most modern models (TP-Link, ASUS, Keenetic) This feature is enabled by default, but in some cases it needs to be activated manually in the settings DHCP or LAN.
Advice: if you play through Java Edition, use the official launcher Minecraft LauncherPirated versions often block multiplayer or contain malware that can interfere with the connection.
2. Method 1: Playing via LAN (for Java Edition)
This is the easiest way to connect if both players are using Java EditionIt does not require creating a server, but only works within a single local network.
Instructions for the host (the one who opens the world):
- Launch Minecraft and create a new world or load an existing one.
- Click
Esc, then selectOpen for LAN(Open to LAN). - In the window that appears, select the game mode (Survival, Creation or Adventure) and enable cheats if needed.
- Click
Launch the world via LAN(Start LAN World).
After this, a message like this will appear in the chat:
The local game server is running on port 12345.
The second player must:
- Launch Minecraft and choose
Multiplayer(Multiplayer). - Click
Direct connection(Direct Connect). - Enter the host IP address and port separated by a colon (e.g.
192.168.1.100:12345).
Make sure both PCs are connected to the same Wi-Fi network|
Launch a world on the host and open it to LAN|
Remember the port specified in the chat|
Enter the host IP and port on the second PC-->
How to find out the IP address of a host? On Windows, click Win + R, enter cmd, then run the command:
ipconfig
Look for the line IPv4 address in the section Wireless network adapter.
3. Method 2: Creating your own server (for Java and Bedrock)
If you want more control over the game (for example, installing mods or playing with more than one friend), it's better to create your own server. To do this, you'll need:
- 💻 A computer with good hardware (at least 4 GB of RAM for 2-3 players).
- 📥 Official server file from Mojang (For Java Edition) or Bedrock Dedicated Server (For Bedrock Edition).
- 🔧 Open port
25565(for Java) or19132(for Bedrock) on the router.
Let's look at the process using an example Java Edition:
Step 1: Downloading server files
1. Go to Minecraft's official website and download server.jar.
2. Create a folder for the server (for example, Minecraft_Server) and place the downloaded file there.
3. Launch server.jar double-click. It will generate configuration files, including eula.txt.
Step 2: Accepting the License Agreement
Open the file eula.txt and change the line eula=false on eula=trueWithout this, the server will not start.
Step 3: Configuring ports on the router
You need to open a port for your friends to connect. 25565:
- Enter the router's IP address into your browser (usually
192.168.0.1or192.168.1.1). - Log in (login and password are often used
admin/admin, if you haven't changed it). - Find the section
Port Forwarding(orPort forwarding). - Add a rule:
- Port:
25565(or19132for Bedrock). - Protocol:
TCP/UDP. - IP address: local IP of your PC (you can find out through
ipconfig).
- Port:
What to do if you can't open the port?
If the port does not open, check:
1. Is it blocked by Windows Firewall or antivirus?
2. Does your router support forwarding (some providers disable this feature).
3. Is the local IP specified correctly (it should be static, not dynamic).
Step 4: Starting the server and connecting
1. Launch server.jar (you can do this via the command line or by double-clicking).
2. The second player must Minecraft choose Multiplayer → Add Server and enter yours external IP address (you can find it on the website 2ip.ru).
Attention! If you have dynamic IP (changes when reconnecting), use services like No-IP to create a static domain name.
4. Setting up Wi-Fi for stable gaming
Even if you've configured your server correctly, lag and disconnections can ruin your gameplay. Here's how to optimize your network:
- 📡 Use 5 GHz instead of
2.4 GHzThe first range is less congested and provides lower latency. - 🔌 Connect the host computer to the router via Ethernet cableThis will reduce ping and eliminate possible packet loss.
- 🚫 Disable downloads and streaming on other devices connected to the same network.
- ⚡ Enable it in your router settings
QoS(Quality of Service) and set the priority for the host IP address.
Also check the settings MTU (Maximum Transmission Unit). If the value is too high, packets may become fragmented, leading to lag. The optimal value for most networks is 1472.
| Problem | Possible cause | Solution |
|---|---|---|
| Unable to connect to the server | The port is not open on the router | Check your settings Port Forwarding and firewall |
| High ping (latency) | Network congestion or weak Wi-Fi signal | Switch to 5 GHz or connect the host via cable |
| The game crashes when connecting | Different versions Minecraft or fashion | Please update your game or sync versions. |
| The server does not start | Not enough RAM | Close unnecessary programs or increase the allocated memory in server.properties |
5. Solving common errors
Even with proper setup, problems can arise. Let's look at the most common ones:
Error: "Failed to connect to the server"
Reasons:
- 🔌 Port
25565closed on the router or by a firewall. - 📡 The host's IP address has changed (if a dynamic IP is used).
- 🖥️ The server is not running or has crashed due to insufficient memory.
Solution: Check the port status via the website port checksIf the port is closed, recheck the settings. Port Forwarding.
Error: "Incompatible versions"
If players have different versions Minecraft, connection will be impossible. Solutions:
- 🔄 Update the game to the latest version via the launcher.
- ⏮️ Install the same version manually (in the launcher, select the desired one from the list of profiles).
- 📦 If you use mods, make sure they are compatible and installed on both players.
Error: "Timeout while connecting"
This means the request to the server is failing. Possible causes:
- 🌐 Incorrect IP address or port.
- 🛡️ Your antivirus is blocking the connection (try disabling it temporarily).
- 📶 Wi-Fi issues (check connection speed on both PCs).
6. Alternative ways to play online
If setting up a local network seems complicated, there are simpler options:
- 🌍 Minecraft Realms — official service from Mojang, where you can create a private server for a monthly fee. Suitable for those who don't want to mess with settings.
- 💻 Hamachi — a program for creating a virtual local area network over the internet. It allows you to play even if your friends aren't on the same Wi-Fi network.
- 🎮 Aternos - free hosting for Minecraft-servers. The downside is the limitations on operating hours and the number of players.
Comparison of methods:
| Way | Difficulty of setup | Price | Max players |
|---|---|---|---|
| Local Area Network (LAN) | Low | For free | 5–10 |
| Own server | Average | For free | 20+ |
| Hamachi | Low | For free | 5 |
| Minecraft Realms | Very low | From 300 rubles/month | 10 |
| Aternos | Low | For free | 10 |
If you are playing through Hamachi, make sure that in the settings Minecraft The IP address of the virtual network is specified (usually starts with 5.x.x.x or 25.x.x.x).
7. Security: How to protect your server
If you're opening a server for friends online, it's important to take security into account:
- 🔐 Set a strong password in the file
server.properties(lineenable-rcon=trueAndrcon.password=your_password). - 🚫 Restrict access by IP. In the file
whitelist.jsonYou can specify which players can connect. - 🛡️ Regularly update your server to the latest version to patch vulnerabilities.
- 📜 Use plugins like EssentialsX or LuckPerms to manage player rights.
Attention! If you use pirated version Minecraft, your account may be blocked when connecting to official servers or RealmsIn addition, such versions often contain viruses that can compromise your network.
FAQ: Answers to frequently asked questions
Is it possible to play via Wi-Fi if I have Bedrock Edition on Windows 10?
Yes, but the process is different from Java EditionYou need:
- Launch the world on the host.
- Click
Esc → Settings → World Settings → Multiplayerand turn onLocal area network. - The second player must connect via the tab
Friendsor enter the host IP manually.
Default port for Bedrock — 19132 (UDP).
Why can't my friend see my server in the list?
Possible reasons:
- The server is not running or has crashed.
- The port is not open on the router.
- The IP address has changed (if a dynamic IP is used).
- Antivirus is blocking the connection.
Check the server status using the command ping your_IP in the command line.
How to reduce lag in games over Wi-Fi?
Follow these tips:
- Use a wired connection for the host.
- Disable downloads and streaming on other devices.
- Reduce the distance between the router and devices.
- In the server settings (
server.properties) reduce the parameterview-distance(for example, before4).
Is it possible to play different versions of the game via Wi-Fi?
No, for co-op play. versions must matchIf you have, for example, Minecraft 1.20.1, and at a friend's 1.19.4, connection will be impossible. Sync versions through the launcher.
What to do if port 25565 is already taken?
You can change the port in the file server.properties (line server-port=). For example, set server-port=25566, and then open this port on the router. Don't forget to specify the new port when connecting.